Class: MiniScheduler::Stat
- Inherits:
-
ActiveRecord::Base
- Object
- ActiveRecord::Base
- MiniScheduler::Stat
- Defined in:
- app/models/mini_scheduler/stat.rb
Class Method Summary collapse
Class Method Details
.purge_old ⇒ Object
8 9 10 |
# File 'app/models/mini_scheduler/stat.rb', line 8 def self.purge_old where("started_at < ?", 1.months.ago).delete_all end |