check shift update data

This commit is contained in:
phyusin
2018-03-09 11:54:35 +06:30
parent d7d5f8afc7
commit 21d39349d3
7 changed files with 76 additions and 76 deletions

View File

@@ -17,7 +17,7 @@ namespace :clear do
Survey.delete_all
DiningFacility.update_all(status:'available')
CashierTerminal.update_all(is_currently_login: 0)
SeedGenerator.where("id > 1").update(:current => 0, :next => 0)
SeedGenerator.where("id > 1").update(:current => 0, :next => 1)
puts "Clear Data Done."
end
end