Class: MiniScheduler::Stat

Inherits:
ActiveRecord::Base
  • Object
show all
Defined in:
app/models/mini_scheduler/stat.rb

Class Method Summary collapse

Class Method Details

.purge_oldObject



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