Skip to content
Snippets Groups Projects
Commit e3a7e43f authored by Riyad Preukschas's avatar Riyad Preukschas
Browse files

Rename gitlab:activate_namespaces to gitlab:enable_namespaces

parent d188adfd
No related branches found
No related tags found
1 merge request!2323Rename tasks
### Enable usernames and namespaces for user projects
 
This command will enable the namespace feature introduced in v4.0. It will move every project in its namespace folder.
This command will enable the namespaces feature introduced in v4.0. It will move every project in its namespace folder.
 
Note:
 
Loading
Loading
@@ -13,7 +13,7 @@ Old path: `git@example.org:myrepo.git`
New path: `git@example.org:username/myrepo.git` or `git@example.org:groupname/myrepo.git`
 
```
bundle exec rake gitlab:activate_namespaces
bundle exec rake gitlab:enable_namespaces
```
 
 
Loading
Loading
namespace :gitlab do
desc "GITLAB | Enable usernames and namespaces for user projects"
task activate_namespaces: :environment do
task enable_namespaces: :environment do
print "\nUsernames for users:".yellow
 
User.find_each(batch_size: 500) do |user|
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment