menu, table,rooms, orders structure
This commit is contained in:
7
app/models/menu_item.rb
Normal file
7
app/models/menu_item.rb
Normal file
@@ -0,0 +1,7 @@
|
||||
class MenuItem < ApplicationRecord
|
||||
belongs_to :menu_category
|
||||
has_many :menu_item_instances
|
||||
belongs_to :parent, :class_name => "MenuItem", foreign_key: "menu_item_id"
|
||||
has_many :children, :class_name => "MenuItem", foreign_key: "menu_item_id"
|
||||
|
||||
end
|
||||
Reference in New Issue
Block a user