FIX: don't use destroy_all when delete_all is enough

This commit is contained in:
Régis Hanol 2016-03-05 00:41:22 +01:00
parent 0a96829508
commit 05f0db0a20

View file

@ -10,7 +10,7 @@ module Jobs
EmailLog.where(reply_key: nil)
.where("created_at < ?", threshold)
.destroy_all
.delete_all
end
end