17 lines
288 B
Ruby
17 lines
288 B
Ruby
|
# rubocop:disable all
|
||
|
class AddFingerprintIndex < ActiveRecord::Migration
|
||
|
disable_ddl_transaction!
|
||
|
|
||
|
DOWNTIME = false
|
||
|
|
||
|
def change
|
||
|
args = [:keys, :fingerprint]
|
||
|
|
||
|
if Gitlab::Database.postgresql?
|
||
|
args << { algorithm: :concurrently }
|
||
|
end
|
||
|
|
||
|
add_index(*args)
|
||
|
end
|
||
|
end
|