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

user_callout.rb « models « app - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: e4b6938262688708c22c3bbe58c64d7d0b6d4ad1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
class UserCallout < ActiveRecord::Base
  belongs_to :user

  enum feature_name: {
    gke_cluster_integration: 1
  }

  validates :user, presence: true
  validates :feature_name,
    presence: true,
    uniqueness: { scope: :user_id },
    inclusion: { in: UserCallout.feature_names.keys }
end