debian-mirror-gitlab/db/migrate/20221212192527_index_sbom_occurrences_on_uuid.rb

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

16 lines
367 B
Ruby
Raw Normal View History

2023-03-17 16:20:25 +05:30
# frozen_string_literal: true
class IndexSbomOccurrencesOnUuid < Gitlab::Database::Migration[2.1]
INDEX_NAME = 'index_sbom_occurrences_on_uuid'
disable_ddl_transaction!
def up
add_concurrent_index :sbom_occurrences, :uuid, unique: true, name: INDEX_NAME
end
def down
remove_concurrent_index_by_name :sbom_occurrences, name: INDEX_NAME
end
end