demarches-normaliennes/app/jobs/cron/purge_unused_admin_job.rb

8 lines
170 B
Ruby
Raw Normal View History

2022-05-02 14:36:59 +02:00
class Cron::PurgeUnusedAdminJob < Cron::CronJob
self.schedule_expression = "every monday at 5 am"
def perform(*args)
Administrateur.unused.destroy_all
end
end