diff options
author | 🙈 jacopo beschi 🙉 <intrip@gmail.com> | 2019-07-30 01:33:57 +0300 |
---|---|---|
committer | Mayra Cabrera <mcabrera@gitlab.com> | 2019-07-30 01:33:57 +0300 |
commit | 66d48385ecaf46b7ddfe0bd33440baaf4ff81a77 (patch) | |
tree | 765fa38cd7b6e6506805cc8a3daac722637d4912 /app/models/members | |
parent | 18e3dcc65e399642918e9a7a90fcafd391a1038d (diff) |
Resolve "MembersFinder contains slow database query with OR conditions"
Diffstat (limited to 'app/models/members')
-rw-r--r-- | app/models/members/group_member.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/app/models/members/group_member.rb b/app/models/members/group_member.rb index 4cba69069bb..f6b19317c50 100644 --- a/app/models/members/group_member.rb +++ b/app/models/members/group_member.rb @@ -1,6 +1,8 @@ # frozen_string_literal: true class GroupMember < Member + include FromUnion + SOURCE_TYPE = 'Namespace'.freeze belongs_to :group, foreign_key: 'source_id' |