blob: f2f74723c3b9e7734d7729dc92e4f4f30be3c2a3 (
plain)
1
2
3
4
5
6
7
8
9
10
11
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
|