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: ff3d36d68ee21caf4add6e88745d2a7e8c2cc395 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
# rubocop:disable all
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