debian-mirror-gitlab/db/migrate/20201106135608_remove_redundant_pipelines_index.rb

18 lines
396 B
Ruby
Raw Normal View History

2021-02-22 17:27:13 +05:30
# frozen_string_literal: true
class RemoveRedundantPipelinesIndex < ActiveRecord::Migration[6.0]
include Gitlab::Database::MigrationHelpers
DOWNTIME = false
disable_ddl_transaction!
def up
remove_concurrent_index_by_name :ci_pipelines, :index_ci_pipelines_on_project_id_and_created_at
end
def down
add_concurrent_index :ci_pipelines, [:project_id, :created_at]
end
end