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

7 lines
163 B
Ruby

class Cron::DiscardedProceduresDeletionJob < Cron::CronJob
self.schedule_expression = "every day at 1 am"
def perform
Procedure.purge_discarded
end
end