summaryrefslogtreecommitdiff
path: root/db/post_migrate/20200922170907_change_index_on_pipeline_status.rb
diff options
context:
space:
mode:
Diffstat (limited to 'db/post_migrate/20200922170907_change_index_on_pipeline_status.rb')
-rw-r--r--db/post_migrate/20200922170907_change_index_on_pipeline_status.rb21
1 files changed, 0 insertions, 21 deletions
diff --git a/db/post_migrate/20200922170907_change_index_on_pipeline_status.rb b/db/post_migrate/20200922170907_change_index_on_pipeline_status.rb
deleted file mode 100644
index 61648788d7f..00000000000
--- a/db/post_migrate/20200922170907_change_index_on_pipeline_status.rb
+++ /dev/null
@@ -1,21 +0,0 @@
-# frozen_string_literal: true
-
-class ChangeIndexOnPipelineStatus < ActiveRecord::Migration[6.0]
- include Gitlab::Database::MigrationHelpers
-
- DOWNTIME = false
- OLD_INDEX_NAME = 'index_ci_pipelines_on_status'
- NEW_INDEX_NAME = 'index_ci_pipelines_on_status_and_id'
-
- disable_ddl_transaction!
-
- def up
- add_concurrent_index :ci_pipelines, [:status, :id], name: NEW_INDEX_NAME
- remove_concurrent_index_by_name :ci_pipelines, name: OLD_INDEX_NAME
- end
-
- def down
- add_concurrent_index :ci_pipelines, :status, name: OLD_INDEX_NAME
- remove_concurrent_index_by_name :ci_pipelines, name: NEW_INDEX_NAME
- end
-end