diff options
author | Andrey Kumanyaev <me@zzet.org> | 2013-05-05 18:01:10 +0400 |
---|---|---|
committer | Andrey Kumanyaev <me@zzet.org> | 2013-05-05 18:01:10 +0400 |
commit | 67ccc8b52aceebea9c0cb22b3277daf0b467c78e (patch) | |
tree | 6139a7674fe0f9d70a0af51c383fd72aa91cc54c /lib/tasks/gitlab/bulk_add_permission.rake | |
parent | 493b5ff011d5788f669adabf978a40b49b8cf6a3 (diff) |
Replace old hashes with new 1.9 ruby hashes (rebase)
Diffstat (limited to 'lib/tasks/gitlab/bulk_add_permission.rake')
-rw-r--r-- | lib/tasks/gitlab/bulk_add_permission.rake | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/tasks/gitlab/bulk_add_permission.rake b/lib/tasks/gitlab/bulk_add_permission.rake index eb1a7559dbd..d8e231645a8 100644 --- a/lib/tasks/gitlab/bulk_add_permission.rake +++ b/lib/tasks/gitlab/bulk_add_permission.rake @@ -1,9 +1,9 @@ namespace :gitlab do namespace :import do desc "GITLAB | Add all users to all projects (admin users are added as masters)" - task :all_users_to_all_projects => :environment do |t, args| - user_ids = User.where(:admin => false).pluck(:id) - admin_ids = User.where(:admin => true).pluck(:id) + task all_users_to_all_projects: :environment do |t, args| + user_ids = User.where(admin: false).pluck(:id) + admin_ids = User.where(admin: true).pluck(:id) projects_ids = Project.pluck(:id) puts "Importing #{user_ids.size} users into #{projects_ids.size} projects" |