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 | |
parent | c2fe86394bac998d887c5f59b48849dc067b9e43 (diff) | |
download | thoughts-230a5014f895dedc6d16192e853f90cb18eb8703.tar.gz thoughts-230a5014f895dedc6d16192e853f90cb18eb8703.tar.bz2 thoughts-230a5014f895dedc6d16192e853f90cb18eb8703.zip |
Fixed migration again
-rw-r--r-- | Gemfile.lock | 2 | ||||
-rw-r--r-- | db/migrate/20171015171554_rename_revision_hold_item.pokeviewer.rb | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/Gemfile.lock b/Gemfile.lock index 108fb43..dcc8cef 100644 --- a/Gemfile.lock +++ b/Gemfile.lock | |||
@@ -1,6 +1,6 @@ | |||
1 | GIT | 1 | GIT |
2 | remote: https://github.com/hatkirby/pokeviewer.git | 2 | remote: https://github.com/hatkirby/pokeviewer.git |
3 | revision: a29b86011d9c53709279d125f4501140c17ccc1e | 3 | revision: 6def4c0a8ac99a489647b93c2a752b9803aefce1 |
4 | specs: | 4 | specs: |
5 | pokeviewer (0.1.0) | 5 | pokeviewer (0.1.0) |
6 | activerecord-diff | 6 | activerecord-diff |
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 |