FIX: Ambiguous column in `downsize_uploads` (#14972)

FIX: Ambiguous column in downsize_uploads (#14972)

diff --git a/script/downsize_uploads.rb b/script/downsize_uploads.rb
index ce7adc2..5b3edf8 100644
--- a/script/downsize_uploads.rb
+++ b/script/downsize_uploads.rb
@@ -49,7 +49,7 @@ def process_uploads
   SQL
 
   if ENV["WORKER_ID"] && ENV["WORKER_COUNT"]
-    scope = scope.where("id % ? = ?", ENV["WORKER_COUNT"], ENV["WORKER_ID"])
+    scope = scope.where("uploads.id % ? = ?", ENV["WORKER_COUNT"], ENV["WORKER_ID"])
   end
 
   skipped = 0

GitHub sha: cfabdb72bc288caeae8eb15224a99561e9841d9d

This commit appears in #14972 which was approved by davidtaylorhq. It was merged by CvX.