shop
This commit is contained in:
@@ -4,6 +4,8 @@ class Zone < ApplicationRecord
|
||||
has_many :rooms, dependent: :destroy
|
||||
has_many :order_queue_stations
|
||||
has_many :cashier_terminals
|
||||
|
||||
scope :shop, -> { where("shop_code=?",Shop.current_shop.shop_code) }
|
||||
|
||||
# validations
|
||||
validates_presence_of :name, :created_by
|
||||
|
||||
Reference in New Issue
Block a user