about summary refs log tree commit diff stats
path: root/db/migrate/20170930021856_add_gift_ribbons_to_trainer.rb
diff options
context:
space:
mode:
Diffstat (limited to 'db/migrate/20170930021856_add_gift_ribbons_to_trainer.rb')
-rw-r--r--db/migrate/20170930021856_add_gift_ribbons_to_trainer.rb16
1 files changed, 8 insertions, 8 deletions
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 @@
1class AddGiftRibbonsToTrainer < ActiveRecord::Migration[5.1] 1class AddGiftRibbonsToTrainer < ActiveRecord::Migration[5.1]
2 def change 2 def change
3 change_table :pokeviewer_trainers do |t| 3 change_table :trainers do |t|
4 t.references :marine_ribbon, null: true 4 t.references :marine_ribbon, null: true
5 t.references :land_ribbon, null: true 5 t.references :land_ribbon, null: true
6 t.references :sky_ribbon, null: true 6 t.references :sky_ribbon, null: true
@@ -10,25 +10,25 @@ class AddGiftRibbonsToTrainer < ActiveRecord::Migration[5.1]
10 t.references :world_ribbon, null: true 10 t.references :world_ribbon, null: true
11 end 11 end
12 12
13 add_foreign_key :pokeviewer_trainers, :pokeviewer_gift_ribbons, 13 add_foreign_key :trainers, :gift_ribbons,
14 column: :marine_ribbon_id 14 column: :marine_ribbon_id
15 15
16 add_foreign_key :pokeviewer_trainers, :pokeviewer_gift_ribbons, 16 add_foreign_key :trainers, :gift_ribbons,
17 column: :land_ribbon_id 17 column: :land_ribbon_id
18 18
19 add_foreign_key :pokeviewer_trainers, :pokeviewer_gift_ribbons, 19 add_foreign_key :trainers, :gift_ribbons,
20 column: :sky_ribbon_id 20 column: :sky_ribbon_id
21 21
22 add_foreign_key :pokeviewer_trainers, :pokeviewer_gift_ribbons, 22 add_foreign_key :trainers, :gift_ribbons,
23 column: :country_ribbon_id 23 column: :country_ribbon_id
24 24
25 add_foreign_key :pokeviewer_trainers, :pokeviewer_gift_ribbons, 25 add_foreign_key :trainers, :gift_ribbons,
26 column: :national_ribbon_id 26 column: :national_ribbon_id
27 27
28 add_foreign_key :pokeviewer_trainers, :pokeviewer_gift_ribbons, 28 add_foreign_key :trainers, :gift_ribbons,
29 column: :earth_ribbon_id 29 column: :earth_ribbon_id
30 30
31 add_foreign_key :pokeviewer_trainers, :pokeviewer_gift_ribbons, 31 add_foreign_key :trainers, :gift_ribbons,
32 column: :world_ribbon_id 32 column: :world_ribbon_id
33 end 33 end
34end 34end