summaryrefslogtreecommitdiff
path: root/lib/tasks
diff options
context:
space:
mode:
Diffstat (limited to 'lib/tasks')
-rw-r--r--lib/tasks/migrate/migrate_global_projects.rake10
1 files changed, 7 insertions, 3 deletions
diff --git a/lib/tasks/migrate/migrate_global_projects.rake b/lib/tasks/migrate/migrate_global_projects.rake
index f2f74723c3b..2cf9c23fb80 100644
--- a/lib/tasks/migrate/migrate_global_projects.rake
+++ b/lib/tasks/migrate/migrate_global_projects.rake
@@ -4,9 +4,13 @@ task migrate_global_projects: :environment do
ask_to_continue
Project.where(namespace_id: nil).find_each(batch_size: 20) do |project|
-
- # TODO: transfer code here
- print '.'
+ begin
+ project.transfer(project.owner.namespace)
+ print '.'
+ rescue => ex
+ puts ex.message
+ print 'F'
+ end
end
end