2026-02-12 09:22:08 +02:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
|
|
|
|
|
class CreateDynamicDocuments < ActiveRecord::Migration[8.1]
|
|
|
|
|
def change
|
|
|
|
|
create_table :dynamic_documents do |t|
|
2026-03-09 09:00:09 +02:00
|
|
|
t.string :uuid, null: false
|
2026-02-12 09:22:08 +02:00
|
|
|
t.references :template, null: false, foreign_key: true, index: true
|
|
|
|
|
t.text :body, null: false
|
|
|
|
|
t.text :head
|
2026-03-09 09:00:09 +02:00
|
|
|
t.string :sha1, null: false
|
2026-02-12 09:22:08 +02:00
|
|
|
|
|
|
|
|
t.timestamps
|
|
|
|
|
end
|
|
|
|
|
end
|
|
|
|
|
end
|