about summary refs log tree commit diff stats
path: root/db/migrate/20170930185514_create_pokeviewer_items.rb
diff options
context:
space:
mode:
authorStar Rauchenberger <fefferburbia@gmail.com>2024-12-07 11:49:49 -0500
committerStar Rauchenberger <fefferburbia@gmail.com>2024-12-07 11:49:49 -0500
commit56f5841d4b9c12296cdfcaeff174b2627d59afc8 (patch)
tree4f7da4ebbe5ee15a1594b26466ed78e2cf10de35 /db/migrate/20170930185514_create_pokeviewer_items.rb
parentc1b0443ba2aebdbd39291ddab0c189f3f4831320 (diff)
downloadpokeviewer-56f5841d4b9c12296cdfcaeff174b2627d59afc8.tar.gz
pokeviewer-56f5841d4b9c12296cdfcaeff174b2627d59afc8.tar.bz2
pokeviewer-56f5841d4b9c12296cdfcaeff174b2627d59afc8.zip
Migrate to full rails app
Diffstat (limited to 'db/migrate/20170930185514_create_pokeviewer_items.rb')
-rw-r--r--db/migrate/20170930185514_create_pokeviewer_items.rb4
1 files changed, 2 insertions, 2 deletions
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 @@
1class CreatePokeviewerItems < ActiveRecord::Migration[5.1] 1class CreatePokeviewerItems < ActiveRecord::Migration[5.1]
2 def change 2 def change
3 create_table :pokeviewer_items do |t| 3 create_table :items do |t|
4 t.string :name, null: false 4 t.string :name, null: false
5 t.boolean :tm, null: false, default: false 5 t.boolean :tm, null: false, default: false
6 t.references :move, null: true 6 t.references :move, null: true
@@ -11,6 +11,6 @@ class CreatePokeviewerItems < ActiveRecord::Migration[5.1]
11 t.timestamps 11 t.timestamps
12 end 12 end
13 13
14 add_foreign_key :pokeviewer_items, :pokeviewer_moves, column: :move_id 14 add_foreign_key :items, :moves, column: :move_id
15 end 15 end
16end 16end