debian-mirror-gitlab/db/post_migrate/20220524202158_drop_index_on_deployments_on_created_at_cluster_id_and_project_id.rb
2022-07-23 20:15:48 +02:00

19 lines
512 B
Ruby

# frozen_string_literal: true
class DropIndexOnDeploymentsOnCreatedAtClusterIdAndProjectId < Gitlab::Database::Migration[2.0]
disable_ddl_transaction!
INDEX_NAME = 'tp_index_created_at_cluster_id_project_id_on_deployments'
def up
remove_concurrent_index_by_name :deployments, INDEX_NAME
end
def down
# no-op
#
# There's no need to re-add this index as it's purpose was temporary, served only
# for a specific CR query which is now closed, and should not be re-opened.
end
end