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

7 lines
202 B
Ruby

class Cron::PurgeManagerAdministrateurSessionsJob < Cron::CronJob
self.schedule_expression = "every day at 3 am"
def perform
AdministrateursProcedure.where(manager: true).destroy_all
end
end