add cashier zone terminal

This commit is contained in:
Yan
2017-10-23 11:39:41 +06:30
parent 95ef534b04
commit 44010e1762
2 changed files with 15 additions and 2 deletions

View File

@@ -1,4 +1,6 @@
class CashierTerminal < ApplicationRecord
has_many :cashier_terminal_by_zones
has_many :zones, through: :cashier_terminal_by_zones
scope :available, -> {where(is_currently_login: false)}
end