summaryrefslogtreecommitdiff
path: root/app/models/user_callout.rb
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