add menu api
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user