From 6def4c0a8ac99a489647b93c2a752b9803aefce1 Mon Sep 17 00:00:00 2001 From: Kelly Rauchenberger Date: Sun, 15 Oct 2017 14:25:23 -0400 Subject: Fixed migration again --- db/migrate/20170930213633_rename_revision_hold_item.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'db') 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] 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