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/20170930213633_rename_revision_hold_item.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/db/migrate/20170930213633_rename_revision_hold_item.rb b/db/migrate/20170930213633_rename_revision_hold_item.rb index e4fdbf0..fe5ce9d 100644 --- a/db/migrate/20170930213633_rename_revision_hold_item.rb +++ b/db/migrate/20170930213633_rename_revision_hold_item.rb
@@ -3,7 +3,7 @@ class RenameRevisionHoldItem < ActiveRecord::Migration[5.1]
3 remove_column :pokeviewer_revisions, :hold_item, :integer 3 remove_column :pokeviewer_revisions, :hold_item, :integer
4 4
5 change_table :pokeviewer_revisions do |t| 5 change_table :pokeviewer_revisions do |t|
6 t.integer :item_id 6 t.references :item
7 end 7 end
8 8
9 add_foreign_key :pokeviewer_revisions, :pokeviewer_items, column: :item_id 9 add_foreign_key :pokeviewer_revisions, :pokeviewer_items, column: :item_id