12 lines
301 B
Ruby
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
|