Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'db/post_migrate/20200214034836_remove_security_dashboard_feature_flag.rb')
-rw-r--r--db/post_migrate/20200214034836_remove_security_dashboard_feature_flag.rb25
1 files changed, 0 insertions, 25 deletions
diff --git a/db/post_migrate/20200214034836_remove_security_dashboard_feature_flag.rb b/db/post_migrate/20200214034836_remove_security_dashboard_feature_flag.rb
deleted file mode 100644
index 79723619533..00000000000
--- a/db/post_migrate/20200214034836_remove_security_dashboard_feature_flag.rb
+++ /dev/null
@@ -1,25 +0,0 @@
-# frozen_string_literal: true
-
-class RemoveSecurityDashboardFeatureFlag < ActiveRecord::Migration[6.0]
- DOWNTIME = false
-
- class FeatureGate < ApplicationRecord
- self.table_name = 'feature_gates'
- end
-
- def up
- FeatureGate.find_by(feature_key: :security_dashboard, key: :boolean)&.delete
- end
-
- def down
- instance_security_dashboard_feature = FeatureGate.find_by(feature_key: :instance_security_dashboard, key: :boolean)
-
- if instance_security_dashboard_feature.present?
- FeatureGate.safe_find_or_create_by!(
- feature_key: :security_dashboard,
- key: instance_security_dashboard_feature.key,
- value: instance_security_dashboard_feature.value
- )
- end
- end
-end