From 05f0db0a20525a75247a442aebe120d0bfb200b0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9gis=20Hanol?= Date: Sat, 5 Mar 2016 00:41:22 +0100 Subject: [PATCH] FIX: don't use `destroy_all` when `delete_all` is enough --- app/jobs/scheduled/clean_up_email_logs.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/jobs/scheduled/clean_up_email_logs.rb b/app/jobs/scheduled/clean_up_email_logs.rb index 413aca9d2..30305c4d9 100644 --- a/app/jobs/scheduled/clean_up_email_logs.rb +++ b/app/jobs/scheduled/clean_up_email_logs.rb @@ -10,7 +10,7 @@ module Jobs EmailLog.where(reply_key: nil) .where("created_at < ?", threshold) - .destroy_all + .delete_all end end