summaryrefslogtreecommitdiff
path: root/db/migrate/20160316123110_ci_runners_token_index.rb
blob: 67bf5b4f97827560b2d4df1cf768d18c9a5eb009 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
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