update model for menu

This commit is contained in:
Yan
2017-08-11 14:23:33 +06:30
parent b7cde3125f
commit 12d3e70b19
4 changed files with 12 additions and 0 deletions

View File

@@ -1,2 +1,7 @@
class ItemSet < ApplicationRecord
has_many :menu_item_sets
has_many :menu_items, through: :menu_item_sets
has_many :menu_instance_item_sets
has_many :menu_item_instances, through: :menu_item_sets
end