gitlab-org--gitlab-foss/db/post_migrate/20210923133143_remove_redun...

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

16 lines
374 B
Ruby
Raw Normal View History

# frozen_string_literal: true
class RemoveRedundantTaggingsIndex < Gitlab::Database::Migration[1.0]
disable_ddl_transaction!
INDEX_NAME = :index_taggings_on_taggable_id_and_taggable_type
def up
remove_concurrent_index_by_name :taggings, INDEX_NAME
end
def down
add_concurrent_index :taggings, [:taggable_id, :taggable_type], name: INDEX_NAME
end
end