From 8d548aef82436ab20b1fe6dd6f6e39d1cbca6119 Mon Sep 17 00:00:00 2001 From: Kelly Rauchenberger Date: Mon, 29 Jan 2018 21:18:12 -0500 Subject: Fixed typo in database index --- db/migrate/20180129213822_create_pokeviewer_pokedex_entries.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'db/migrate/20180129213822_create_pokeviewer_pokedex_entries.rb') diff --git a/db/migrate/20180129213822_create_pokeviewer_pokedex_entries.rb b/db/migrate/20180129213822_create_pokeviewer_pokedex_entries.rb index 99ac4f6..8456456 100644 --- a/db/migrate/20180129213822_create_pokeviewer_pokedex_entries.rb +++ b/db/migrate/20180129213822_create_pokeviewer_pokedex_entries.rb @@ -8,7 +8,7 @@ class CreatePokeviewerPokedexEntries < ActiveRecord::Migration[5.1] t.timestamps end - add_foreign_key :pokeviewer_pokedex_entries, :pokeviewer_trainer, + add_foreign_key :pokeviewer_pokedex_entries, :pokeviewer_trainers, column: :trainer_id add_foreign_key :pokeviewer_pokedex_entries, :pokeviewer_species, -- cgit 1.4.1