diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2022-01-20 12:16:11 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2022-01-20 12:16:11 +0300 |
commit | edaa33dee2ff2f7ea3fac488d41558eb5f86d68c (patch) | |
tree | 11f143effbfeba52329fb7afbd05e6e2a3790241 /app/models/group/crm_settings.rb | |
parent | d8a5691316400a0f7ec4f83832698f1988eb27c1 (diff) |
Add latest changes from gitlab-org/gitlab@14-7-stable-eev14.7.0-rc42
Diffstat (limited to 'app/models/group/crm_settings.rb')
-rw-r--r-- | app/models/group/crm_settings.rb | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/app/models/group/crm_settings.rb b/app/models/group/crm_settings.rb new file mode 100644 index 00000000000..30fbe6ae07f --- /dev/null +++ b/app/models/group/crm_settings.rb @@ -0,0 +1,10 @@ +# frozen_string_literal: true + +class Group::CrmSettings < ApplicationRecord + self.primary_key = :group_id + self.table_name = 'group_crm_settings' + + belongs_to :group, -> { where(type: Group.sti_name) }, foreign_key: 'group_id' + + validates :group, presence: true +end |