BigW Consortium Gitlab

20160316123110_ci_runners_token_index.rb 268 Bytes
Newer Older
1
# rubocop:disable all
2 3 4 5 6 7 8 9 10 11 12 13 14
class CiRunnersTokenIndex < ActiveRecord::Migration
  disable_ddl_transaction!

  def change
    args = [:ci_runners, :token]

    if Gitlab::Database.postgresql?
      args << { algorithm: :concurrently }
    end

    add_index(*args)
  end
end