menu, table,rooms, orders structure
This commit is contained in:
14
db/migrate/20170402084230_create_menu_item_instances.rb
Normal file
14
db/migrate/20170402084230_create_menu_item_instances.rb
Normal file
@@ -0,0 +1,14 @@
|
||||
class CreateMenuItemInstances < ActiveRecord::Migration[5.0]
|
||||
def change
|
||||
create_table :menu_item_instances do |t|
|
||||
t.references :menu_item, :foreign_key => true, :null => false
|
||||
t.string :item_instance_code, :null => false
|
||||
t.json :attributes
|
||||
t.decimal :price, :null => false
|
||||
t.boolean :is_available, :null => false, :default => true
|
||||
t.boolean :is_on_promotion, :null => false, :default => false
|
||||
t.decimal :promotion_price, :null => false, :default => false
|
||||
t.timestamps
|
||||
end
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user