diff options
Diffstat (limited to 'lib/tasks/migrate/migrate_global_projects.rake')
-rw-r--r-- | lib/tasks/migrate/migrate_global_projects.rake | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/lib/tasks/migrate/migrate_global_projects.rake b/lib/tasks/migrate/migrate_global_projects.rake new file mode 100644 index 00000000000..f2f74723c3b --- /dev/null +++ b/lib/tasks/migrate/migrate_global_projects.rake @@ -0,0 +1,12 @@ +desc "GITLAB | Migrate Global Projects to Namespaces" +task migrate_global_projects: :environment do + puts "This will move all projects without namespace to owner namespace" + ask_to_continue + + Project.where(namespace_id: nil).find_each(batch_size: 20) do |project| + + # TODO: transfer code here + print '.' + end +end + |