From 56f5841d4b9c12296cdfcaeff174b2627d59afc8 Mon Sep 17 00:00:00 2001 From: Star Rauchenberger Date: Sat, 7 Dec 2024 11:49:49 -0500 Subject: Migrate to full rails app --- db/migrate/20170930213633_rename_revision_hold_item.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'db/migrate/20170930213633_rename_revision_hold_item.rb') diff --git a/db/migrate/20170930213633_rename_revision_hold_item.rb b/db/migrate/20170930213633_rename_revision_hold_item.rb index fe5ce9d..4060b9b 100644 --- a/db/migrate/20170930213633_rename_revision_hold_item.rb +++ b/db/migrate/20170930213633_rename_revision_hold_item.rb @@ -1,11 +1,11 @@ class RenameRevisionHoldItem < ActiveRecord::Migration[5.1] def change - remove_column :pokeviewer_revisions, :hold_item, :integer + remove_column :revisions, :hold_item, :integer - change_table :pokeviewer_revisions do |t| + change_table :revisions do |t| t.references :item end - add_foreign_key :pokeviewer_revisions, :pokeviewer_items, column: :item_id + add_foreign_key :revisions, :items, column: :item_id end end -- cgit 1.4.1