From 230a5014f895dedc6d16192e853f90cb18eb8703 Mon Sep 17 00:00:00 2001 From: Kelly Rauchenberger Date: Sun, 15 Oct 2017 14:25:58 -0400 Subject: Fixed migration again --- Gemfile.lock | 2 +- 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 @@ GIT remote: https://github.com/hatkirby/pokeviewer.git - revision: a29b86011d9c53709279d125f4501140c17ccc1e + revision: 6def4c0a8ac99a489647b93c2a752b9803aefce1 specs: pokeviewer (0.1.0) 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] remove_column :pokeviewer_revisions, :hold_item, :integer change_table :pokeviewer_revisions do |t| - t.integer :item_id + t.references :item end add_foreign_key :pokeviewer_revisions, :pokeviewer_items, column: :item_id -- cgit 1.4.1