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

7 lines
163 B
Ruby

class Cron::PurgeStaleTransfersJob < Cron::CronJob
self.schedule_expression = "every day at midnight"
def perform
DossierTransfer.destroy_stale
end
end