diff --git a/lib/tasks/uploads.rake b/lib/tasks/uploads.rake index 8fd1960f224..027351fe3e3 100644 --- a/lib/tasks/uploads.rake +++ b/lib/tasks/uploads.rake @@ -421,7 +421,7 @@ def migrate_to_s3 OptimizedImage .joins("LEFT JOIN uploads u ON optimized_images.upload_id = u.id") .where("u.id IS NOT NULL AND u.url LIKE '//%' AND optimized_images.url NOT LIKE '//%'") - .destroy_all + .delete_all puts "Rebaking posts with lightboxes..."