summaryrefslogtreecommitdiff
path: root/app/models/user_callout.rb
diff options
context:
space:
mode:
authorKamil Trzciński <ayufan@ayufan.eu>2018-11-22 12:47:26 +0100
committerKamil Trzciński <ayufan@ayufan.eu>2018-11-22 12:51:46 +0100
commita952c84ffdf736e1c4fae39ee38d7f8a75093c3b (patch)
treec52d6e1f5d64177d90264fd049f4aed223f6c432 /app/models/user_callout.rb
parent2e3dab38295b7c36ab100f20c654fdfaf9b00885 (diff)
downloadgitlab-ce-revert-enum-changes.tar.gz
Revert changes to enums.revert-enum-changes
All enums has to be backported to CE.
Diffstat (limited to 'app/models/user_callout.rb')
-rw-r--r--app/models/user_callout.rb10
1 files changed, 7 insertions, 3 deletions
diff --git a/app/models/user_callout.rb b/app/models/user_callout.rb
index 76e7bc06b4e..8b2203c24b8 100644
--- a/app/models/user_callout.rb
+++ b/app/models/user_callout.rb
@@ -3,9 +3,13 @@
class UserCallout < ActiveRecord::Base
belongs_to :user
- # We use `UserCalloutEnums.feature_names` here so that EE can more easily
- # extend this `Hash` with new values.
- enum feature_name: ::UserCalloutEnums.feature_names
+ # All EE-only enums has to be backported to CE
+ enum feature_name: {
+ gke_cluster_integration: 1,
+ gcp_signup_offer: 2,
+ cluster_security_warning: 3,
+ gold_trial: 4 # EE-only
+ }
validates :user, presence: true
validates :feature_name,