gitlab-org--gitlab-foss/app/models/user_callout.rb

14 lines
294 B
Ruby
Raw Normal View History

2018-02-02 16:51:03 -05:00
class UserCallout < ActiveRecord::Base
2018-01-26 11:06:52 -05:00
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 }
2018-01-26 11:06:52 -05:00
end