menu, table,rooms, orders structure

This commit is contained in:
Min Zeya Phyo
2017-04-03 21:26:22 +06:30
parent 40423c12d3
commit 30b4a0f5ff
60 changed files with 536 additions and 101 deletions

View File

@@ -0,0 +1,18 @@
class CreateOrderItems < ActiveRecord::Migration[5.0]
def change
create_table :order_items do |t|
t.references :order, foreign_key: true, :null => false
t.string :order_item_status, :null => false, :default => "new"
t.string :item_code, :null => false
t.string :item_name, :null => false
t.integer :qty, :null => false
t.string :item_order_by #person who order this
t.string :remark
t.string :options
t.string :variants
t.json :set_menu_items #this parameter is require to route the items correctly
t.timestamps
end
end
end