debian-mirror-gitlab/db/migrate/20201110035029_created_index_for_vulnerability_occurrences_on_project_fingerprint.rb
2021-01-29 00:20:46 +05:30

19 lines
498 B
Ruby

# frozen_string_literal: true
class CreatedIndexForVulnerabilityOccurrencesOnProjectFingerprint < ActiveRecord::Migration[6.0]
include Gitlab::Database::MigrationHelpers
DOWNTIME = false
INDEX_NAME = 'index_vulnerability_occurrences_on_project_fingerprint'
disable_ddl_transaction!
def up
add_concurrent_index :vulnerability_occurrences, :project_fingerprint, name: INDEX_NAME
end
def down
remove_concurrent_index_by_name :vulnerability_occurrences, INDEX_NAME
end
end