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/20170916225306_create_pokeviewer_trainers.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'db/migrate/20170916225306_create_pokeviewer_trainers.rb') diff --git a/db/migrate/20170916225306_create_pokeviewer_trainers.rb b/db/migrate/20170916225306_create_pokeviewer_trainers.rb index 18e7952..f6fb9ac 100644 --- a/db/migrate/20170916225306_create_pokeviewer_trainers.rb +++ b/db/migrate/20170916225306_create_pokeviewer_trainers.rb @@ -1,6 +1,6 @@ class CreatePokeviewerTrainers < ActiveRecord::Migration[5.1] def change - create_table :pokeviewer_trainers do |t| + create_table :trainers do |t| t.string :game, null: false t.string :name, null: false, limit: 191 t.integer :number, null: false @@ -8,6 +8,6 @@ class CreatePokeviewerTrainers < ActiveRecord::Migration[5.1] t.timestamps end - add_index :pokeviewer_trainers, [:name, :number], unique: true + add_index :trainers, [:name, :number], unique: true end end -- cgit 1.4.1