gitlab-org--gitlab-foss/db/migrate/20151109134526_add_issues_state_index.rb
Yorick Peterse 50f6541610 Added index on issues.state
This field is queried when filtering issues and due to the lack of an
index would end up triggering a sequence scan.
2015-11-19 11:46:38 +01:00

5 lines
105 B
Ruby

class AddIssuesStateIndex < ActiveRecord::Migration
def change
add_index :issues, :state
end
end