summaryrefslogtreecommitdiff
path: root/app/models/user_callout.rb
diff options
context:
space:
mode:
Diffstat (limited to 'app/models/user_callout.rb')
-rw-r--r--app/models/user_callout.rb13
1 files changed, 13 insertions, 0 deletions
diff --git a/app/models/user_callout.rb b/app/models/user_callout.rb
new file mode 100644
index 00000000000..e4b69382626
--- /dev/null
+++ b/app/models/user_callout.rb
@@ -0,0 +1,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