From 232b5387d082497891869180e64530bde7859934 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9gis=20Hanol?= Date: Tue, 12 May 2015 09:36:46 +0200 Subject: [PATCH] remove useless 'order by' --- lib/tasks/uploads.rake | 1 - 1 file changed, 1 deletion(-) diff --git a/lib/tasks/uploads.rake b/lib/tasks/uploads.rake index 3289ec512..0a8aa7dad 100644 --- a/lib/tasks/uploads.rake +++ b/lib/tasks/uploads.rake @@ -232,7 +232,6 @@ def regenerate_missing_optimized OptimizedImage.includes(:upload) .where("LENGTH(COALESCE(url, '')) > 0") .where("width > 0 AND height > 0") - .order(:id) .find_each do |optimized_image| upload = optimized_image.upload