editing migration

This commit is contained in:
Yan
2017-06-07 18:08:44 +06:30
parent df138d94ba
commit a601cf6d75
2 changed files with 1 additions and 1 deletions

View File

@@ -4,7 +4,7 @@ class MenuItem < ApplicationRecord
has_many :menu_item_instances
belongs_to :parent, :class_name => "MenuItem", foreign_key: "menu_item_id", :optional => true
has_many :children, :class_name => "MenuItem", foreign_key: "menu_item_id"
belongs_to :account
belongs_to :account, :optional => true
validates_presence_of :item_code, :name, :type, :min_qty, :taxable, :min_selectable_item, :max_selectable_item