user_callout.rb 294 Bytes
Newer Older
1
class UserCallout < ActiveRecord::Base
Matija Čupić's avatar
Matija Čupić committed
2
  belongs_to :user
3

4 5 6 7
  enum feature_name: {
    gke_cluster_integration: 0
  }

8
  validates :user, presence: true
9 10 11 12
  validates :feature_name,
    presence: true,
    uniqueness: { scope: :user_id },
    inclusion: { in: UserCallout.feature_names.keys }
Matija Čupić's avatar
Matija Čupić committed
13
end