Files
sx-fc/db/migrate/20170403143526_create_dining_ins.rb
2017-04-03 21:26:22 +06:30

12 lines
301 B
Ruby

class CreateDiningIns < ActiveRecord::Migration[5.0]
def change
create_table :dining_ins do |t|
t.references :table
t.references :order
t.boolean :currently_occupied, :default => false #there will only be 1 true - where table_id+order_id
t.timestamps
end
end
end