Use select instead of pluck on Project.group_ids

parent adb8b828
...@@ -390,7 +390,7 @@ class Project < ActiveRecord::Base ...@@ -390,7 +390,7 @@ class Project < ActiveRecord::Base
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