summaryrefslogtreecommitdiff
path: root/db/post_migrate/20200220115023_fix_projects_without_prometheus_service.rb
diff options
context:
space:
mode:
Diffstat (limited to 'db/post_migrate/20200220115023_fix_projects_without_prometheus_service.rb')
-rw-r--r--db/post_migrate/20200220115023_fix_projects_without_prometheus_service.rb27
1 files changed, 0 insertions, 27 deletions
diff --git a/db/post_migrate/20200220115023_fix_projects_without_prometheus_service.rb b/db/post_migrate/20200220115023_fix_projects_without_prometheus_service.rb
deleted file mode 100644
index 274a392a52a..00000000000
--- a/db/post_migrate/20200220115023_fix_projects_without_prometheus_service.rb
+++ /dev/null
@@ -1,27 +0,0 @@
-# frozen_string_literal: true
-
-# See http://doc.gitlab.com/ce/development/migration_style_guide.html
-# for more information on how to write migrations for GitLab.
-
-class FixProjectsWithoutPrometheusService < ActiveRecord::Migration[6.0]
- include Gitlab::Database::MigrationHelpers
-
- DOWNTIME = false
-
- BATCH_SIZE = 50_000
- MIGRATION = 'FixProjectsWithoutPrometheusService'
-
- disable_ddl_transaction!
-
- class Project < ActiveRecord::Base
- include EachBatch
- end
-
- def up
- queue_background_migration_jobs_by_range_at_intervals(Project, MIGRATION, 2.minutes, batch_size: BATCH_SIZE)
- end
-
- def down
- # no-op
- end
-end