destroy all admins
This commit is contained in:
parent
a2947751e2
commit
da97ad1858
1 changed files with 7 additions and 0 deletions
7
app/jobs/cron/purge_unused_admin_job.rb
Normal file
7
app/jobs/cron/purge_unused_admin_job.rb
Normal file
|
@ -0,0 +1,7 @@
|
|||
class Cron::PurgeUnusedAdminJob < Cron::CronJob
|
||||
self.schedule_expression = "every monday at 5 am"
|
||||
|
||||
def perform(*args)
|
||||
Administrateur.unused.destroy_all
|
||||
end
|
||||
end
|
Loading…
Reference in a new issue