debian-mirror-gitlab/db/migrate/20201103095752_add_issues_closed_at_index.rb
2021-01-30 21:13:34 +05:30

17 lines
372 B
Ruby

# frozen_string_literal: true
class AddIssuesClosedAtIndex < ActiveRecord::Migration[6.0]
include Gitlab::Database::MigrationHelpers
DOWNTIME = false
disable_ddl_transaction!
def up
add_concurrent_index(:issues, [:project_id, :closed_at])
end
def down
remove_concurrent_index_by_name(:issues, 'index_issues_on_project_id_and_closed_at')
end
end