debian-mirror-gitlab/db/migrate/20190913175827_add_index_to_software_licenses_on_spdx_id.rb
2019-12-21 20:55:43 +05:30

18 lines
361 B
Ruby

# frozen_string_literal: true
class AddIndexToSoftwareLicensesOnSpdxId < ActiveRecord::Migration[5.2]
include Gitlab::Database::MigrationHelpers
DOWNTIME = false
disable_ddl_transaction!
def up
add_concurrent_index :software_licenses, :spdx_identifier
end
def down
remove_concurrent_index :software_licenses, :spdx_identifier
end
end