FIX: don't check system uploads in migrate_to_s3 rake task

FIX: don’t check system uploads in migrate_to_s3 rake task

diff --git a/lib/tasks/uploads.rake b/lib/tasks/uploads.rake
index 5a88a62..f5f1455 100644
--- a/lib/tasks/uploads.rake
+++ b/lib/tasks/uploads.rake
@@ -218,7 +218,7 @@ def migrate_to_s3
   puts "*" * 30 + " DRY RUN " + "*" * 30 if dry_run
   puts "Migrating uploads to S3 for '#{db}'..."
 
-  if Upload.where("url NOT LIKE '//%' AND url NOT LIKE '/uploads/#{db}/original/_X/%'").exists?
+  if Upload.by_users.where("url NOT LIKE '//%' AND url NOT LIKE '/uploads/#{db}/original/_X/%'").exists?
     puts <<~TEXT
       Some uploads were not migrated to the new scheme. Please run these commands in the rails console

GitHub sha: 9dbca411

This commit has been mentioned on Discourse Meta. There might be relevant details there:

This commit has been mentioned on Discourse Meta. There might be relevant details there:

:+1: