summaryrefslogtreecommitdiff
path: root/db/migrate/20210601133459_replace_runners_contacted_at_index.rb
diff options
context:
space:
mode:
Diffstat (limited to 'db/migrate/20210601133459_replace_runners_contacted_at_index.rb')
-rw-r--r--db/migrate/20210601133459_replace_runners_contacted_at_index.rb26
1 files changed, 0 insertions, 26 deletions
diff --git a/db/migrate/20210601133459_replace_runners_contacted_at_index.rb b/db/migrate/20210601133459_replace_runners_contacted_at_index.rb
deleted file mode 100644
index a0a933721f0..00000000000
--- a/db/migrate/20210601133459_replace_runners_contacted_at_index.rb
+++ /dev/null
@@ -1,26 +0,0 @@
-# frozen_string_literal: true
-
-# See https://docs.gitlab.com/ee/development/migration_style_guide.html
-# for more information on how to write migrations for GitLab.
-
-class ReplaceRunnersContactedAtIndex < ActiveRecord::Migration[6.0]
- include Gitlab::Database::MigrationHelpers
-
- disable_ddl_transaction!
-
- OLD_INDEX_NAME = 'index_ci_runners_on_contacted_at'
-
- def up
- add_concurrent_index :ci_runners, [:contacted_at, :id], order: { id: :desc }, name: 'index_ci_runners_on_contacted_at_and_id_desc', using: 'btree'
- add_concurrent_index :ci_runners, [:contacted_at, :id], order: { contacted_at: :desc, id: :desc }, name: 'index_ci_runners_on_contacted_at_desc_and_id_desc', using: 'btree'
-
- remove_concurrent_index_by_name :ci_runners, OLD_INDEX_NAME
- end
-
- def down
- remove_concurrent_index_by_name :ci_runners, 'index_ci_runners_on_contacted_at_and_id_desc'
- remove_concurrent_index_by_name :ci_runners, 'index_ci_runners_on_contacted_at_desc_and_id_desc'
-
- add_concurrent_index :ci_runners, :contacted_at, name: OLD_INDEX_NAME, using: 'btree'
- end
-end