From a952c84ffdf736e1c4fae39ee38d7f8a75093c3b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kamil=20Trzci=C5=84ski?= Date: Thu, 22 Nov 2018 12:47:26 +0100 Subject: Revert changes to enums. All enums has to be backported to CE. --- app/models/user_callout.rb | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'app/models/user_callout.rb') 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, -- cgit v1.2.1