debian-mirror-gitlab/db/migrate/20220520030504_drop_index_namespaces_on_name.rb
2022-07-29 14:03:07 +02:00

15 lines
295 B
Ruby

# frozen_string_literal: true
class DropIndexNamespacesOnName < Gitlab::Database::Migration[2.0]
disable_ddl_transaction!
INDEX_NAME = 'index_namespaces_on_name'
def up
remove_concurrent_index_by_name :namespaces, INDEX_NAME, if_exists: true
end
def down
# no-op
end
end