add expiry for login

This commit is contained in:
phyusin
2018-06-26 11:23:34 +06:30
parent ba0a7b3391
commit da1f0a4765
5 changed files with 21 additions and 6 deletions

View File

@@ -16,6 +16,7 @@ namespace :clear do
PaymentJournal.delete_all
Survey.delete_all
ProductCommission.delete_all
InDuty.delete_all
DiningFacility.update_all(status:'available')
CashierTerminal.update_all(is_currently_login: 0)
SeedGenerator.where("id > 1").update(:current => 0, :next => 1)