remove useless 'order by'

This commit is contained in:
Régis Hanol 2015-05-12 09:36:46 +02:00
parent b489384b59
commit 232b5387d0

View file

@ -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