diff options
author | Kelly Rauchenberger <fefferburbia@gmail.com> | 2017-10-15 14:25:58 -0400 |
---|---|---|
committer | Kelly Rauchenberger <fefferburbia@gmail.com> | 2017-10-15 14:25:58 -0400 |
commit | 230a5014f895dedc6d16192e853f90cb18eb8703 (patch) | |
tree | d1cf39096fb0fb088a078419990f33effb397c08 /db/migrate | |
parent | c2fe86394bac998d887c5f59b48849dc067b9e43 (diff) | |
download | thoughts-230a5014f895dedc6d16192e853f90cb18eb8703.tar.gz thoughts-230a5014f895dedc6d16192e853f90cb18eb8703.tar.bz2 thoughts-230a5014f895dedc6d16192e853f90cb18eb8703.zip |
Fixed migration again
Diffstat (limited to 'db/migrate')
-rw-r--r-- | db/migrate/20171015171554_rename_revision_hold_item.pokeviewer.rb | 2 |
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 |