Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/lib/tasks
diff options
context:
space:
mode:
authorMicaël Bergeron <mbergeron@gitlab.com>2018-03-29 18:05:05 +0300
committerMicaël Bergeron <mbergeron@gitlab.com>2018-03-29 18:05:05 +0300
commitef10679418f6fca1a0bb8c0f5d57c1550e104183 (patch)
tree76f063d2ff97fde377c865abdb365cb1f61da688 /lib/tasks
parentc88fe5a31be4d14bf7efbc7ab8aa763678b17967 (diff)
fix rake migration task from ignoring Upload(store: nil)
Diffstat (limited to 'lib/tasks')
-rw-r--r--lib/tasks/gitlab/uploads/migrate.rake4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/tasks/gitlab/uploads/migrate.rake b/lib/tasks/gitlab/uploads/migrate.rake
index c26c3ccb3be..f0f4acd6140 100644
--- a/lib/tasks/gitlab/uploads/migrate.rake
+++ b/lib/tasks/gitlab/uploads/migrate.rake
@@ -25,8 +25,8 @@ namespace :gitlab do
Upload.class_eval { include EachBatch } unless Upload < EachBatch
Upload
- .where.not(store: @to_store)
- .where(uploader: @uploader_class.to_s,
+ .where(store: [nil, 1],
+ uploader: @uploader_class.to_s,
model_type: @model_class.base_class.sti_name)
end
end