diff options
author | Micaël Bergeron <mbergeron@gitlab.com> | 2018-03-29 18:05:05 +0300 |
---|---|---|
committer | Micaël Bergeron <mbergeron@gitlab.com> | 2018-03-29 18:05:05 +0300 |
commit | ef10679418f6fca1a0bb8c0f5d57c1550e104183 (patch) | |
tree | 76f063d2ff97fde377c865abdb365cb1f61da688 /lib/tasks | |
parent | c88fe5a31be4d14bf7efbc7ab8aa763678b17967 (diff) |
fix rake migration task from ignoring Upload(store: nil)
Diffstat (limited to 'lib/tasks')
-rw-r--r-- | lib/tasks/gitlab/uploads/migrate.rake | 4 |
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 |