18 lines
426 B
Ruby
18 lines
426 B
Ruby
# frozen_string_literal: true
|
|
|
|
class RemoveIndexOnSecurityFindingsScanId < ActiveRecord::Migration[6.0]
|
|
include Gitlab::Database::MigrationHelpers
|
|
|
|
DOWNTIME = false
|
|
INDEX_NAME = 'index_security_findings_on_scan_id'
|
|
|
|
disable_ddl_transaction!
|
|
|
|
def up
|
|
remove_concurrent_index_by_name :security_findings, INDEX_NAME
|
|
end
|
|
|
|
def down
|
|
add_concurrent_index :security_findings, :scan_id, name: INDEX_NAME
|
|
end
|
|
end
|