demarches-normaliennes/app/jobs/cron/purge_unused_admin_job.rb
2022-05-03 12:14:02 +02:00

7 lines
170 B
Ruby

class Cron::PurgeUnusedAdminJob < Cron::CronJob
self.schedule_expression = "every monday at 5 am"
def perform(*args)
Administrateur.unused.destroy_all
end
end