discourse/app/jobs/scheduled/clean_up_unsubscribe_keys.rb
Sam 852860de66 FEATURE: simpler and friendlier unsubscribe workflow
- All unsubscribes go to the exact same page
- You may unsubscribe from watching a category on that page
- You no longer need to be logged in to unsubscribe from a topic
- Simplified footer on emails
2016-06-17 11:28:49 +10:00

13 lines
192 B
Ruby

module Jobs
class CleanUpUnsubscribeKeys < Jobs::Scheduled
every 1.day
def execute(args)
UnsubscribeKey.where('created_at < ?', 2.months.ago).delete_all
end
end
end