Commit 8f6a1f14 authored by Jeremy Watson's avatar Jeremy Watson 🕺🏻

prune older than 2 years instead of 12 months

parent 33c663ae
Pipeline #32116737 failed with stages
in 67 minutes and 22 seconds
......@@ -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% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment