demarches-normaliennes/app/jobs/purge_stale_archives_job.rb

8 lines
140 B
Ruby
Raw Normal View History

class PurgeStaleArchivesJob < CronJob
self.schedule_expression = "every 5 minutes"
def perform
Archive.stale.destroy_all
end
end