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

7 lines
167 B
Ruby

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