Sha256: 85f5242d4aa2fe8e42e27b03fdef6845033af56470ee059d5e547ed45a164198
Contents?: true
Size: 193 Bytes
Versions: 2
Compression:
Stored size: 193 Bytes
Contents
module MiniScheduler class Stat < ActiveRecord::Base self.table_name = 'scheduler_stats' def self.purge_old where('started_at < ?', 1.months.ago).delete_all end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
mini_scheduler-0.8.1 | app/models/mini_scheduler/stat.rb |
mini_scheduler-0.8.0 | app/models/mini_scheduler/stat.rb |