gitlab-org--gitlab-foss/db/migrate/20200522235146_add_index_on...

18 lines
327 B
Ruby

# frozen_string_literal: true
class AddIndexOnSnippetTypeAndId < ActiveRecord::Migration[6.0]
include Gitlab::Database::MigrationHelpers
DOWNTIME = false
disable_ddl_transaction!
def up
add_concurrent_index :snippets, [:id, :type]
end
def down
remove_concurrent_index :snippets, [:id, :type]
end
end