diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2022-01-18 09:11:59 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2022-01-18 09:11:59 +0300 |
commit | eef9e3fbb512d7d7b9873279ef13fdc6a203a6fb (patch) | |
tree | 5ba4747731ab29d2faea7600c0b1a4b4800fd9ef /app/models/member.rb | |
parent | 104ac5e939f8bc7618fb16fb94f08c9b47637d08 (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'app/models/member.rb')
-rw-r--r-- | app/models/member.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/app/models/member.rb b/app/models/member.rb index 3521223b27c..7d4c0bb2c59 100644 --- a/app/models/member.rb +++ b/app/models/member.rb @@ -27,6 +27,7 @@ class Member < ApplicationRecord belongs_to :created_by, class_name: "User" belongs_to :user belongs_to :source, polymorphic: true # rubocop:disable Cop/PolymorphicAssociations + belongs_to :member_namespace, inverse_of: :namespace_members, foreign_key: 'member_namespace_id', class_name: 'Namespace' has_one :member_task delegate :name, :username, :email, :last_activity_on, to: :user, prefix: true |