mirror of
https://github.com/discourse/discourse.git
synced 2025-03-29 09:10:14 +08:00
purge scheduler_stats
every 1 month instead of 3
This commit is contained in:
parent
aba76bace6
commit
a4815047c0
@ -1,6 +1,6 @@
|
|||||||
class SchedulerStat < ActiveRecord::Base
|
class SchedulerStat < ActiveRecord::Base
|
||||||
def self.purge_old
|
def self.purge_old
|
||||||
where('started_at < ?', 3.months.ago).delete_all
|
where('started_at < ?', 1.months.ago).delete_all
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user