Commit 877bc644 authored by Mayra Cabrera's avatar Mayra Cabrera

Merge branch 'fix_wrong_method_in_rake_task' into 'master'

Fix wrong method in rake task

See merge request gitlab-org/gitlab!48703
parents c194de15 7b9a27d2
......@@ -6,8 +6,8 @@ namespace :gitlab do
result = User.where(id: group.direct_and_indirect_users_with_inactive.select(:id)).update_all(projects_limit: 0, can_create_group: false)
ids_count = group.direct_and_indirect_users_with_inactive.count
puts "Done".green if result == ids_count
puts "Something went wrong".red if result != ids_count
puts "Done".color(:green) if result == ids_count
puts "Something went wrong".color(:red) if result != ids_count
end
end
end
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment