From 32d2a76b385774534da2305b895bd945a2f7f965 Mon Sep 17 00:00:00 2001 From: "Balasankar \"Balu\" C" Date: Tue, 18 Sep 2018 20:11:46 +0530 Subject: Add documentation regarding rake task --- doc/development/file_storage.md | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'doc/development') 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 -- cgit v1.2.3