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/20170930185514_create_pokeviewer_items.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'db/migrate/20170930185514_create_pokeviewer_items.rb') diff --git a/db/migrate/20170930185514_create_pokeviewer_items.rb b/db/migrate/20170930185514_create_pokeviewer_items.rb index 82cf3c2..4ef9c64 100644 --- a/db/migrate/20170930185514_create_pokeviewer_items.rb +++ b/db/migrate/20170930185514_create_pokeviewer_items.rb @@ -1,6 +1,6 @@ class CreatePokeviewerItems < ActiveRecord::Migration[5.1] def change - create_table :pokeviewer_items do |t| + create_table :items do |t| t.string :name, null: false t.boolean :tm, null: false, default: false t.references :move, null: true @@ -11,6 +11,6 @@ class CreatePokeviewerItems < ActiveRecord::Migration[5.1] t.timestamps end - add_foreign_key :pokeviewer_items, :pokeviewer_moves, column: :move_id + add_foreign_key :items, :moves, column: :move_id end end -- cgit 1.4.1