blob: cc26db924fed9cf6f843a715c9f025210a9493b0 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
# frozen_string_literal: true
class DropIndexOnCiBuildsForToken < ActiveRecord::Migration[6.1]
include Gitlab::Database::MigrationHelpers
disable_ddl_transaction!
INDEXNAME = :index_ci_builds_on_token
def up
remove_concurrent_index_by_name :ci_builds, INDEXNAME
end
def down
add_concurrent_index :ci_builds, :token, unique: true, name: INDEXNAME
end
end
|