FEATURE: Retain the latest 30 days of WebHookEvent records by default.

This commit is contained in:
Guo Xiang Tan
2017-11-08 14:08:30 +08:00
parent ed16cba77f
commit 6090994cdf
6 changed files with 51 additions and 6 deletions

View File

@@ -0,0 +1,9 @@
module Jobs
class PurgeOldWebHookEvents < Jobs::Scheduled
every 1.week
def execute(_)
WebHookEvent.purge_old
end
end
end