7 lines
140 B
Ruby
7 lines
140 B
Ruby
class PurgeStaleArchivesJob < CronJob
|
|
self.schedule_expression = "every 5 minutes"
|
|
|
|
def perform
|
|
Archive.stale.destroy_all
|
|
end
|
|
end
|