blob: 4ef9c64f05627477464e8383ea7aee8fa278abf2 (
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 :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 :items, :moves, column: :move_id
end
end
|