diff options
author | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2013-06-19 20:48:48 +0400 |
---|---|---|
committer | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2013-06-19 20:48:48 +0400 |
commit | b3ef63a0a547610ba8ac6435674eabc5a2130c3d (patch) | |
tree | b90c2d38c8ea93941fd0067e89a0e03f60b00c9c /lib/tasks/migrate | |
parent | cf8b465cb96f5aa6e53fec60c0d6e62ad1ccbc5e (diff) |
Migrate global project taks. Removed more teams related functionality
Diffstat (limited to 'lib/tasks/migrate')
-rw-r--r-- | lib/tasks/migrate/migrate_global_projects.rake | 10 |
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 |