add menu api

This commit is contained in:
Yan
2017-08-17 18:55:13 +06:30
parent f2829fab0f
commit 29b3f94573
26 changed files with 84 additions and 168 deletions

View File

@@ -8,7 +8,7 @@ class CreateMenuCategories < ActiveRecord::Migration[5.1]
t.integer :order_by
t.string :created_by, :null => false
t.references :menu_category, :null => true
t.boolean :is_available, :null => false, :default => true
t.timestamps
end
end

View File

@@ -2,6 +2,7 @@ class CreateItemSets < ActiveRecord::Migration[5.1]
def change
create_table :item_sets do |t|
t.string :name
t.string :alt_name
t.integer :min_selectable_qty
t.integer :max_selectable_qty

View File

@@ -2,7 +2,6 @@ class SettingsProducts < ActiveRecord::Migration[5.1]
def change
create_table :products do |t|
t.string :item_code, :limit => 16
t.string :name, :null => false
t.string :alt_name
t.integer :unit_price