thirteen-tien-len_classic/db/migrate/20151125092802_create_seats.rb

11 lines
203 B
Ruby

class CreateSeats < ActiveRecord::Migration
def change
create_table :seats do |t|
t.references :table, index: true
t.references :user, index: true
t.timestamps
end
end
end