From cfabdb72bc288caeae8eb15224a99561e9841d9d Mon Sep 17 00:00:00 2001 From: Jarek Radosz Date: Tue, 16 Nov 2021 16:23:32 +0100 Subject: [PATCH] FIX: Ambiguous column in `downsize_uploads` (#14972) --- script/downsize_uploads.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/script/downsize_uploads.rb b/script/downsize_uploads.rb index ce7adc2efda..5b3edf885eb 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