destroy all admins

This commit is contained in:
simon lehericey 2022-05-02 14:36:59 +02:00
parent a2947751e2
commit da97ad1858

View 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