diff options
author | Kelly Rauchenberger <fefferburbia@gmail.com> | 2017-10-15 14:25:23 -0400 |
---|---|---|
committer | Kelly Rauchenberger <fefferburbia@gmail.com> | 2017-10-15 14:25:23 -0400 |
commit | 6def4c0a8ac99a489647b93c2a752b9803aefce1 (patch) | |
tree | a3ea6de080efe87d8c7a1f806f3fdd92c308504c | |
parent | a29b86011d9c53709279d125f4501140c17ccc1e (diff) | |
download | pokeviewer-6def4c0a8ac99a489647b93c2a752b9803aefce1.tar.gz pokeviewer-6def4c0a8ac99a489647b93c2a752b9803aefce1.tar.bz2 pokeviewer-6def4c0a8ac99a489647b93c2a752b9803aefce1.zip |
Fixed migration again
-rw-r--r-- | db/migrate/20170930213633_rename_revision_hold_item.rb | 2 |
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 |