blob: 76bb6a096391f1fbc0ab9ffdb4c409ba634d8084 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
# rubocop:disable RemoveIndex
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
|