Skip to content
Snippets Groups Projects
Commit dc13af90 authored by Lennart Rosam's avatar Lennart Rosam
Browse files

Fix rake task - Update method name

parent d9027df5
No related branches found
No related tags found
4 merge requests!2940Expanding repos and hooks paths in settings,!2800Issue #2790 - "gitlab:import:all_users_to_all_projects" not working in 4.1,!2801Fix #2790,!2770Capistrano deploy
Loading
Loading
@@ -7,9 +7,9 @@ namespace :gitlab do
 
Project.find_each do |project|
puts "Importing #{user_ids.size} users into #{project.code}"
UsersProject.bulk_import(project, user_ids, UsersProject::DEVELOPER)
UsersProject.add_users_into_projects(project, user_ids, UsersProject::DEVELOPER)
puts "Importing #{admin_ids.size} admins into #{project.code}"
UsersProject.bulk_import(project, admin_ids, UsersProject::MASTER)
UsersProject.add_users_into_projects(project, admin_ids, UsersProject::MASTER)
end
end
 
Loading
Loading
@@ -18,7 +18,7 @@ namespace :gitlab do
user = User.find_by_email args.email
project_ids = Project.pluck(:id)
 
UsersProject.user_bulk_import(user, project_ids, UsersProject::DEVELOPER)
UsersProject.add_users_into_projects(user, project_ids, UsersProject::DEVELOPER)
end
end
end
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment