fix errors in migration scripts

This commit is contained in:
Thomas Peetz
2025-06-28 18:19:14 +02:00
parent 1be2dcbdfc
commit eab74a62f7
12 changed files with 128 additions and 6 deletions
@@ -6,7 +6,7 @@ class CreatePublishers < ActiveRecord::Migration[8.0]
t.integer :version
t.string :name
t.string :weblink
t.belongs_to :publisher, optional: true
t.string :parent_publisher_id
end
change_column :publishers, :id, :string
end
@@ -8,7 +8,7 @@ class CreateComics < ActiveRecord::Migration[8.0]
t.boolean :current_order
t.boolean :completed
t.string :weblink
t.belongs_to :publisher, foreign_key: true
t.belongs_to :publisher
end
change_column :comics, :id, :string
end
@@ -9,9 +9,9 @@ class CreateIssues < ActiveRecord::Migration[8.0]
t.datetime :published_on
t.boolean :in_stock
t.boolean :is_read
t.belongs_to :comic, foreign_key: true
t.belongs_to :volume, foreign_key: true
t.belongs_to :story_arc, foreign_key: true
t.belongs_to :comic
t.belongs_to :volume
t.belongs_to :story_arc
end
change_column :issues, :id, :string
end