Welcome to mirror list, hosted at ThFree Co, Russian Federation.

crm_settings.rb « group « models « app - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 30fbe6ae07f7d1286c69d62a16a8e5697a8b87b2 (plain)
1
2
3
4
5
6
7
8
9
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