osaka menu rake

This commit is contained in:
Yan
2017-07-11 19:21:17 +06:30
parent 39aca095fb
commit b47e0d0548
4 changed files with 63 additions and 65 deletions

View File

@@ -8,7 +8,7 @@ class MenuItem < ApplicationRecord
has_many :children, :class_name => "MenuItem", foreign_key: "menu_item_id"
belongs_to :account
validates_presence_of :item_code, :name, :type, :min_qty, :taxable, :min_selectable_item, :max_selectable_item
validates_presence_of :name, :type, :min_qty, :taxable, :min_selectable_item, :max_selectable_item
default_scope { order('item_code asc') }