demarches-normaliennes/app/jobs/purge_stale_exports_job.rb

8 lines
115 B
Ruby
Raw Normal View History

2019-11-27 14:56:08 +01:00
class PurgeStaleExportsJob < ApplicationJob
queue_as :cron
def perform
Export.stale.destroy_all
end
end