12 lines
296 B
Ruby
12 lines
296 B
Ruby
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
|