We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 60e2309 commit 89acf09Copy full SHA for 89acf09
1 file changed
lib/tasks/daily.rake
@@ -4,7 +4,7 @@ task daily: :environment do
4
t = 1.day.ago
5
older_comments = Comment.where("created_at < ?", t)
6
newer_comments = Comment.where("created_at >= ?", t)
7
- Rails.logger.info "Deleting #{older_comments.count} comments older than #{t}"
8
- Rails.logger.info "Keeping #{newer_comments.count} comments newer than #{t}"
+ puts "Deleting #{older_comments.count} comments older than #{t}"
+ puts "Keeping #{newer_comments.count} comments newer than #{t}"
9
older_comments.delete_all
10
end
0 commit comments