thirteen-tien-len/db/migrate/20150104203256_create_players.rb

11 lines
211 B
Ruby

class CreatePlayers < ActiveRecord::Migration[5.2]
def change
create_table :players do |t|
t.references :game, index: true
t.references :user, index: true
t.timestamps
end
end
end