blob: 3584c7136e338f0afabc63ddb5c190eec80605a4 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
# frozen_string_literal: true
class AddGinIndexOnPendingBuildsNamespaceTraversalIds < Gitlab::Database::Migration[1.0]
disable_ddl_transaction!
INDEX_NAME = 'index_gin_ci_pending_builds_on_namespace_traversal_ids'
def up
add_concurrent_index :ci_pending_builds, :namespace_traversal_ids, name: INDEX_NAME, using: :gin
end
def down
remove_concurrent_index_by_name :ci_pending_builds, INDEX_NAME
end
end
|