14 lines
271 B
Ruby
14 lines
271 B
Ruby
![]() |
class AddUniqueIndexToKeysFingerprint < ActiveRecord::Migration
|
||
|
include Gitlab::Database::MigrationHelpers
|
||
|
|
||
|
disable_ddl_transaction!
|
||
|
|
||
|
def up
|
||
|
add_concurrent_index :keys, :fingerprint, unique: true
|
||
|
end
|
||
|
|
||
|
def down
|
||
|
remove_index :keys, :fingerprint
|
||
|
end
|
||
|
end
|