about summary refs log tree commit diff stats
path: root/db/migrate/20171015171552_create_pokeviewer_items.pokeviewer.rb
diff options
context:
space:
mode:
Diffstat (limited to 'db/migrate/20171015171552_create_pokeviewer_items.pokeviewer.rb')
-rw-r--r--db/migrate/20171015171552_create_pokeviewer_items.pokeviewer.rb17
1 files changed, 17 insertions, 0 deletions
diff --git a/db/migrate/20171015171552_create_pokeviewer_items.pokeviewer.rb b/db/migrate/20171015171552_create_pokeviewer_items.pokeviewer.rb new file mode 100644 index 0000000..7adc387 --- /dev/null +++ b/db/migrate/20171015171552_create_pokeviewer_items.pokeviewer.rb
@@ -0,0 +1,17 @@
1# This migration comes from pokeviewer (originally 20170930185514)
2class CreatePokeviewerItems < ActiveRecord::Migration[5.1]
3 def change
4 create_table :pokeviewer_items do |t|
5 t.string :name, null: false
6 t.boolean :tm, null: false, default: false
7 t.references :move, null: true
8 t.string :rs_description
9 t.string :frlg_description
10 t.string :emerald_description
11
12 t.timestamps
13 end
14
15 add_foreign_key :pokeviewer_items, :pokeviewer_moves, column: :move_id
16 end
17end