debian-mirror-gitlab/db/migrate/20191014132931_remove_index_on_snippets_project_id.rb
2019-12-21 20:55:43 +05:30

18 lines
333 B
Ruby

# frozen_string_literal: true
class RemoveIndexOnSnippetsProjectId < ActiveRecord::Migration[5.2]
include Gitlab::Database::MigrationHelpers
DOWNTIME = false
disable_ddl_transaction!
def up
remove_concurrent_index :snippets, [:project_id]
end
def down
add_concurrent_index :snippets, [:project_id]
end
end