check required for oqs and cashier terminal

This commit is contained in:
phyusin
2017-10-27 12:02:38 +06:30
parent 8f5d24a2e3
commit 0653bfab53
3 changed files with 6 additions and 1 deletions

View File

@@ -3,4 +3,7 @@ class CashierTerminal < ApplicationRecord
has_many :zones, through: :cashier_terminal_by_zones
scope :available, -> {where(is_currently_login: false)}
# validations
validates_presence_of :name, :printer_name
end