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:
authorBalasankar "Balu" C <balasankar@gitlab.com>2018-09-18 17:41:46 +0300
committerBalasankar "Balu" C <balasankar@gitlab.com>2018-09-18 18:16:03 +0300
commit32d2a76b385774534da2305b895bd945a2f7f965 (patch)
tree2520c0b91636337b75b2f44eac45253bdc9e191b /doc/development
parentc4668c388f8da13ed3328c809a679a2542fd5b8d (diff)
Add documentation regarding rake task
Diffstat (limited to 'doc/development')
-rw-r--r--doc/development/file_storage.md7
1 files changed, 7 insertions, 0 deletions
diff --git a/doc/development/file_storage.md b/doc/development/file_storage.md
index fdbd7f1fa37..984e5fc4ec6 100644
--- a/doc/development/file_storage.md
+++ b/doc/development/file_storage.md
@@ -45,6 +45,11 @@ In the case of Issues/MR/Notes Markdown attachments, there is a different approa
instead of basing the path into a mutable variable `:project_path_with_namespace`, it's possible to use the
hash of the project ID instead, if project migrates to the new approach (introduced in 10.2).
+> Note: We provide an [all-in-one rake task] to migrate all uploads to object
+> storage in one go. If a new Uploader class or model type is introduced, make
+> sure you add a rake task invocation corresponding to it to the [category
+> list].
+
### Path segments
Files are stored at multiple locations and use different path schemes.
@@ -137,3 +142,5 @@ end
[CarrierWave]: https://github.com/carrierwaveuploader/carrierwave
[Hashed Storage]: ../administration/repository_storage_types.md
+[all-in-one rake task]: ../administration/raketasks/uploads/migrate.md
+[category list]: ../../lib/tasks/gitlab/uploads/migrate.rake#L6-16