about summary refs log tree commit diff stats
path: root/db
diff options
context:
space:
mode:
Diffstat (limited to 'db')
-rw-r--r--db/migrate/20171015171554_rename_revision_hold_item.pokeviewer.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/db/migrate/20171015171554_rename_revision_hold_item.pokeviewer.rb b/db/migrate/20171015171554_rename_revision_hold_item.pokeviewer.rb index d83f5e8..7b4f781 100644 --- a/db/migrate/20171015171554_rename_revision_hold_item.pokeviewer.rb +++ b/db/migrate/20171015171554_rename_revision_hold_item.pokeviewer.rb
@@ -4,7 +4,7 @@ class RenameRevisionHoldItem < ActiveRecord::Migration[5.1]
4 remove_column :pokeviewer_revisions, :hold_item, :integer 4 remove_column :pokeviewer_revisions, :hold_item, :integer
5 5
6 change_table :pokeviewer_revisions do |t| 6 change_table :pokeviewer_revisions do |t|
7 t.integer :item_id 7 t.references :item
8 end 8 end
9 9
10 add_foreign_key :pokeviewer_revisions, :pokeviewer_items, column: :item_id 10 add_foreign_key :pokeviewer_revisions, :pokeviewer_items, column: :item_id