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/20170930021856_add_gift_ribbons_to_trainer.rb | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'db/migrate/20170930021856_add_gift_ribbons_to_trainer.rb') diff --git a/db/migrate/20170930021856_add_gift_ribbons_to_trainer.rb b/db/migrate/20170930021856_add_gift_ribbons_to_trainer.rb index 2a5f9b3..ed15ea1 100644 --- a/db/migrate/20170930021856_add_gift_ribbons_to_trainer.rb +++ b/db/migrate/20170930021856_add_gift_ribbons_to_trainer.rb @@ -1,6 +1,6 @@ class AddGiftRibbonsToTrainer < ActiveRecord::Migration[5.1] def change - change_table :pokeviewer_trainers do |t| + change_table :trainers do |t| t.references :marine_ribbon, null: true t.references :land_ribbon, null: true t.references :sky_ribbon, null: true @@ -10,25 +10,25 @@ class AddGiftRibbonsToTrainer < ActiveRecord::Migration[5.1] t.references :world_ribbon, null: true end - add_foreign_key :pokeviewer_trainers, :pokeviewer_gift_ribbons, + add_foreign_key :trainers, :gift_ribbons, column: :marine_ribbon_id - add_foreign_key :pokeviewer_trainers, :pokeviewer_gift_ribbons, + add_foreign_key :trainers, :gift_ribbons, column: :land_ribbon_id - add_foreign_key :pokeviewer_trainers, :pokeviewer_gift_ribbons, + add_foreign_key :trainers, :gift_ribbons, column: :sky_ribbon_id - add_foreign_key :pokeviewer_trainers, :pokeviewer_gift_ribbons, + add_foreign_key :trainers, :gift_ribbons, column: :country_ribbon_id - add_foreign_key :pokeviewer_trainers, :pokeviewer_gift_ribbons, + add_foreign_key :trainers, :gift_ribbons, column: :national_ribbon_id - add_foreign_key :pokeviewer_trainers, :pokeviewer_gift_ribbons, + add_foreign_key :trainers, :gift_ribbons, column: :earth_ribbon_id - add_foreign_key :pokeviewer_trainers, :pokeviewer_gift_ribbons, + add_foreign_key :trainers, :gift_ribbons, column: :world_ribbon_id end end -- cgit 1.4.1