menu, table,rooms, orders structure
This commit is contained in:
16
db/migrate/20170403142424_create_dining_facilities.rb
Normal file
16
db/migrate/20170403142424_create_dining_facilities.rb
Normal file
@@ -0,0 +1,16 @@
|
||||
class CreateDiningFacilities < ActiveRecord::Migration[5.0]
|
||||
def change
|
||||
create_table :dining_facilities do |t|
|
||||
t.references :zone, foreign_key: true
|
||||
t.string :name, :null => false
|
||||
t.string :type, :null => false, :default => "table"
|
||||
t.integer :seater, :null => false, :default => 2
|
||||
t.integer :order_by
|
||||
|
||||
t.string :created_by
|
||||
t.boolean :is_active, :null => false, :default => true
|
||||
|
||||
t.timestamps
|
||||
end
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user