summaryrefslogtreecommitdiff
path: root/db/migrate/20200908183231_add_check_positive_constraint_to_ci_platform_metrics.rb
diff options
context:
space:
mode:
Diffstat (limited to 'db/migrate/20200908183231_add_check_positive_constraint_to_ci_platform_metrics.rb')
-rw-r--r--db/migrate/20200908183231_add_check_positive_constraint_to_ci_platform_metrics.rb19
1 files changed, 0 insertions, 19 deletions
diff --git a/db/migrate/20200908183231_add_check_positive_constraint_to_ci_platform_metrics.rb b/db/migrate/20200908183231_add_check_positive_constraint_to_ci_platform_metrics.rb
deleted file mode 100644
index 8593e03b5d8..00000000000
--- a/db/migrate/20200908183231_add_check_positive_constraint_to_ci_platform_metrics.rb
+++ /dev/null
@@ -1,19 +0,0 @@
-# frozen_string_literal: true
-
-class AddCheckPositiveConstraintToCiPlatformMetrics < ActiveRecord::Migration[6.0]
- include Gitlab::Database::MigrationHelpers
-
- DOWNTIME = false
-
- disable_ddl_transaction!
-
- CONSTRAINT_NAME = 'ci_platform_metrics_check_count_positive'
-
- def up
- add_check_constraint :ci_platform_metrics, 'count > 0', CONSTRAINT_NAME
- end
-
- def down
- remove_check_constraint :ci_platform_metrics, CONSTRAINT_NAME
- end
-end