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
diff options
context:
space:
mode:
authorJarka Košanová <jarka@gitlab.com>2019-08-13 11:30:32 +0300
committerJarka Košanová <jarka@gitlab.com>2019-08-16 08:52:30 +0300
commit19db315734d54d6850b0139dda75da758b55af56 (patch)
tree9cf00e191c70f9661fae2a2f63cd4c0cbf09da67 /spec/factories
parent0297f1c2b862edbe8015874913ebbab1393706e4 (diff)
Add rake tasks for migrating leacy uploads
- move uploads created by AttachmentUploader - handle also files created for legacy_diff_notes
Diffstat (limited to 'spec/factories')
-rw-r--r--spec/factories/uploads.rb5
1 files changed, 1 insertions, 4 deletions
diff --git a/spec/factories/uploads.rb b/spec/factories/uploads.rb
index 2ede92c8af0..3f6326114c9 100644
--- a/spec/factories/uploads.rb
+++ b/spec/factories/uploads.rb
@@ -56,10 +56,7 @@ FactoryBot.define do
end
trait :attachment_upload do
- transient do
- mount_point :attachment
- end
-
+ mount_point :attachment
model { build(:note) }
uploader "AttachmentUploader"
end