debian-mirror-gitlab/db/migrate/20201103095752_add_issues_closed_at_index.rb

18 lines
372 B
Ruby
Raw Normal View History

2021-01-29 00:20:46 +05:30
# 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