summaryrefslogtreecommitdiff
path: root/app/models/group.rb
diff options
context:
space:
mode:
authorZ.J. van de Weg <git@zjvandeweg.nl>2017-02-02 15:04:02 +0100
committerZ.J. van de Weg <git@zjvandeweg.nl>2017-02-16 09:17:40 +0100
commit297dc70158f905fef4557d1ee6510bcf459a08a9 (patch)
treeb35fa5508d947f1d19e644ac9b1149145f9bb45a /app/models/group.rb
parente90ec73f651ca6153a72437d4dd01f60c38839da (diff)
downloadgitlab-ce-297dc70158f905fef4557d1ee6510bcf459a08a9.tar.gz
Create MM team for GitLab group
Diffstat (limited to 'app/models/group.rb')
-rw-r--r--app/models/group.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/app/models/group.rb b/app/models/group.rb
index 240a17f1dc1..27dc4e8f319 100644
--- a/app/models/group.rb
+++ b/app/models/group.rb
@@ -21,6 +21,7 @@ class Group < Namespace
has_many :shared_projects, through: :project_group_links, source: :project
has_many :notification_settings, dependent: :destroy, as: :source
has_many :labels, class_name: 'GroupLabel'
+ has_one :chat_team, dependent: :destroy
validate :avatar_type, if: ->(user) { user.avatar.present? && user.avatar_changed? }
validate :visibility_level_allowed_by_projects