blob: f6fb9ac81f7c08e2b0b497e5d7c9fef057a704aa (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
class CreatePokeviewerTrainers < ActiveRecord::Migration[5.1]
def change
create_table :trainers do |t|
t.string :game, null: false
t.string :name, null: false, limit: 191
t.integer :number, null: false
t.timestamps
end
add_index :trainers, [:name, :number], unique: true
end
end
|