Welcome to mirror list, hosted at ThFree Co, Russian Federation.

20160316123110_ci_runners_token_index.rb « migrate « db - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
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