3ed555f3c9
Now we have cluster_id, state index, we don't the cluster_id index as well.
18 lines
403 B
Ruby
18 lines
403 B
Ruby
# frozen_string_literal: true
|
|
|
|
class RemoveRedundantDeploymentsIndex < ActiveRecord::Migration[5.2]
|
|
include Gitlab::Database::MigrationHelpers
|
|
|
|
# Set this constant to true if this migration requires downtime.
|
|
DOWNTIME = false
|
|
|
|
disable_ddl_transaction!
|
|
|
|
def up
|
|
remove_concurrent_index :deployments, :cluster_id
|
|
end
|
|
|
|
def down
|
|
add_concurrent_index :deployments, :cluster_id
|
|
end
|
|
end
|