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

20160808085602_add_index_for_build_token.rb « migrate « db - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 10ef42afce18c316cb54296039c8b792dae65c62 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
class AddIndexForBuildToken < ActiveRecord::Migration
  include Gitlab::Database::MigrationHelpers

  # Set this constant to true if this migration requires downtime.
  DOWNTIME = false

  disable_ddl_transaction!

  def change
    add_concurrent_index :ci_builds, :token, unique: true
  end
end