Commit 7b9a27d2 authored by Gosia Ksionek's avatar Gosia Ksionek Committed by Mayra Cabrera

Fix wrong method in rake task

parent 4e09a04d
...@@ -6,8 +6,8 @@ namespace :gitlab do ...@@ -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) 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 ids_count = group.direct_and_indirect_users_with_inactive.count
puts "Done".green if result == ids_count puts "Done".color(:green) if result == ids_count
puts "Something went wrong".red if result != ids_count puts "Something went wrong".color(:red) if result != ids_count
end end
end 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