9 lines
203 B
Ruby
9 lines
203 B
Ruby
# frozen_string_literal: true
|
|
|
|
class Cron::PurgeOldEmailEventJob < Cron::CronJob
|
|
self.schedule_expression = "every week at 3:00"
|
|
|
|
def perform
|
|
EmailEvent.outdated.in_batches.destroy_all
|
|
end
|
|
end
|