Commit 37cb2e78 authored by Douglas Barbosa Alexandre's avatar Douglas Barbosa Alexandre
Browse files

Use select instead of pluck on Project.group_ids

parent 3036a736b894
...@@ -390,7 +390,7 @@ def cached_count ...@@ -390,7 +390,7 @@ def cached_count
end end
def group_ids def group_ids
joins(:namespace).where(namespaces: { type: 'Group' }).pluck(:namespace_id) joins(:namespace).where(namespaces: { type: 'Group' }).select(:namespace_id)
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