fix migration
This commit is contained in:
@@ -3,11 +3,11 @@
|
|||||||
class CreateDynamicDocuments < ActiveRecord::Migration[8.1]
|
class CreateDynamicDocuments < ActiveRecord::Migration[8.1]
|
||||||
def change
|
def change
|
||||||
create_table :dynamic_documents do |t|
|
create_table :dynamic_documents do |t|
|
||||||
t.uuid :uuid, null: false
|
t.string :uuid, null: false
|
||||||
t.references :template, null: false, foreign_key: true, index: true
|
t.references :template, null: false, foreign_key: true, index: true
|
||||||
t.text :body, null: false
|
t.text :body, null: false
|
||||||
t.text :head
|
t.text :head
|
||||||
t.text :sha1, null: false
|
t.string :sha1, null: false
|
||||||
|
|
||||||
t.timestamps
|
t.timestamps
|
||||||
end
|
end
|
||||||
|
|||||||
+2
-2
@@ -181,10 +181,10 @@ ActiveRecord::Schema[8.1].define(version: 2026_02_26_193537) do
|
|||||||
t.text "body", null: false
|
t.text "body", null: false
|
||||||
t.datetime "created_at", null: false
|
t.datetime "created_at", null: false
|
||||||
t.text "head"
|
t.text "head"
|
||||||
t.text "sha1", null: false
|
t.string "sha1", null: false
|
||||||
t.bigint "template_id", null: false
|
t.bigint "template_id", null: false
|
||||||
t.datetime "updated_at", null: false
|
t.datetime "updated_at", null: false
|
||||||
t.uuid "uuid", null: false
|
t.string "uuid", null: false
|
||||||
t.index ["template_id"], name: "index_dynamic_documents_on_template_id"
|
t.index ["template_id"], name: "index_dynamic_documents_on_template_id"
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user