2016-06-09 08:39:16 -04:00
|
|
|
# rubocop:disable all
|
2018-11-13 02:27:31 -05:00
|
|
|
class CiRunnersTokenIndex < ActiveRecord::Migration[4.2]
|
2016-03-16 08:38:18 -04:00
|
|
|
disable_ddl_transaction!
|
|
|
|
|
|
|
|
def change
|
|
|
|
args = [:ci_runners, :token]
|
|
|
|
|
|
|
|
if Gitlab::Database.postgresql?
|
|
|
|
args << { algorithm: :concurrently }
|
|
|
|
end
|
|
|
|
|
|
|
|
add_index(*args)
|
|
|
|
end
|
|
|
|
end
|