menu, table,rooms, orders structure
This commit is contained in:
19
db/migrate/20170331024749_create_menu_items.rb
Normal file
19
db/migrate/20170331024749_create_menu_items.rb
Normal file
@@ -0,0 +1,19 @@
|
||||
class CreateMenuItems < ActiveRecord::Migration[5.0]
|
||||
def change
|
||||
create_table :menu_items do |t|
|
||||
t.string :item_code, :null => false
|
||||
t.string :name, :null => false
|
||||
t.string :alt_name
|
||||
t.string :type, :null => false, :default => "SimpleMenuItem"
|
||||
t.references :menu_category, foreign_key: true
|
||||
t.references :menu_item, foreign_key: true
|
||||
t.integer :min_selectable_item, :null => false, :default => 1
|
||||
t.integer :max_selectable_item, :null => false, :default => 1
|
||||
t.json :options #save value
|
||||
t.json :attributes #value IDS
|
||||
t.string :created_by
|
||||
|
||||
t.timestamps
|
||||
end
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user