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
|
||||
def self.purge_old
|
||||
where('started_at < ?', 3.months.ago).delete_all
|
||||
where('started_at < ?', 1.months.ago).delete_all
|
||||
end
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in New Issue