blob: 91b1e5f8ce38585bb7c55dde91e74c6bdb00cc3f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
# 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
|