diff options
Diffstat (limited to 'db/migrate')
-rw-r--r-- | db/migrate/20171015171543_create_pokeviewer_revisions.pokeviewer.rb | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/db/migrate/20171015171543_create_pokeviewer_revisions.pokeviewer.rb b/db/migrate/20171015171543_create_pokeviewer_revisions.pokeviewer.rb index c44c227..330bb90 100644 --- a/db/migrate/20171015171543_create_pokeviewer_revisions.pokeviewer.rb +++ b/db/migrate/20171015171543_create_pokeviewer_revisions.pokeviewer.rb | |||
@@ -34,19 +34,19 @@ class CreatePokeviewerRevisions < ActiveRecord::Migration[5.1] | |||
34 | 34 | ||
35 | add_index :pokeviewer_revisions, [:pokemon_id, :sequential_id], unique: true | 35 | add_index :pokeviewer_revisions, [:pokemon_id, :sequential_id], unique: true |
36 | 36 | ||
37 | add_foreign_key :pokeviewer_revisions, :pokewalker_pokemon, | 37 | add_foreign_key :pokeviewer_revisions, :pokeviewer_pokemon, |
38 | column: :pokemon_id | 38 | column: :pokemon_id |
39 | 39 | ||
40 | add_foreign_key :pokeviewer_revisions, :pokewalker_moves, | 40 | add_foreign_key :pokeviewer_revisions, :pokeviewer_moves, |
41 | column: :move_1_id | 41 | column: :move_1_id |
42 | 42 | ||
43 | add_foreign_key :pokeviewer_revisions, :pokewalker_moves, | 43 | add_foreign_key :pokeviewer_revisions, :pokeviewer_moves, |
44 | column: :move_2_id | 44 | column: :move_2_id |
45 | 45 | ||
46 | add_foreign_key :pokeviewer_revisions, :pokewalker_moves, | 46 | add_foreign_key :pokeviewer_revisions, :pokeviewer_moves, |
47 | column: :move_3_id | 47 | column: :move_3_id |
48 | 48 | ||
49 | add_foreign_key :pokeviewer_revisions, :pokewalker_moves, | 49 | add_foreign_key :pokeviewer_revisions, :pokeviewer_moves, |
50 | column: :move_4_id | 50 | column: :move_4_id |
51 | end | 51 | end |
52 | end | 52 | end |