2019-05-02 18:17:27 -04:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
2019-03-20 06:01:43 -04:00
|
|
|
module Jobs
|
|
|
|
class PurgeExpiredIgnoredUsers < Jobs::Scheduled
|
|
|
|
every 1.day
|
|
|
|
|
|
|
|
def execute(args)
|
2019-03-29 06:14:53 -04:00
|
|
|
IgnoredUser.where("created_at <= ? OR expiring_at <= ?", 4.months.ago, Time.zone.now).delete_all
|
2019-03-20 06:01:43 -04:00
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|