blob: 82cf3c2e67cd863eb170e429c792a20d6d21c06b (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
class CreatePokeviewerItems < ActiveRecord::Migration[5.1]
def change
create_table :pokeviewer_items do |t|
t.string :name, null: false
t.boolean :tm, null: false, default: false
t.references :move, null: true
t.string :rs_description
t.string :frlg_description
t.string :emerald_description
t.timestamps
end
add_foreign_key :pokeviewer_items, :pokeviewer_moves, column: :move_id
end
end
|