提交 8f6a1f14 编写于 作者: J Jeremy Watson

prune older than 2 years instead of 12 months

上级 33c663ae
......@@ -13,7 +13,7 @@ class PruneOldEventsWorker
'(id IN (SELECT id FROM (?) ids_to_remove))',
Event.unscoped.where(
'created_at < ?',
(12.months + 1.day).ago)
(2.years + 1.day).ago)
.select(:id)
.limit(10_000))
.delete_all
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册