menu and menu_category
This commit is contained in:
6
app/models/menu.rb
Normal file
6
app/models/menu.rb
Normal file
@@ -0,0 +1,6 @@
|
||||
class Menu < ApplicationRecord
|
||||
has_many :menu_categories, dependent: :destroy
|
||||
|
||||
validates_presence_of :name,:is_active, :valid_days, :valid_time_from, :valid_time_to
|
||||
|
||||
end
|
||||
Reference in New Issue
Block a user