diff --git a/app/models/activity_stream.rb b/app/models/activity_stream.rb index 242086483..787a9ef60 100644 --- a/app/models/activity_stream.rb +++ b/app/models/activity_stream.rb @@ -126,11 +126,11 @@ cleanup old stream messages optional you can parse the max oldest stream entries - ActivityStream.cleanup(4.months) + ActivityStream.cleanup(3.months) =end - def self.cleanup(diff = 4.months) + def self.cleanup(diff = 3.months) ActivityStream.where('created_at < ?', Time.zone.now - diff).delete_all true end