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.
This commit is contained in:
Yorick Peterse 2015-11-09 17:17:40 +01:00
parent a42d469ab2
commit 50f6541610

View file

@ -0,0 +1,5 @@
class AddIssuesStateIndex < ActiveRecord::Migration
def change
add_index :issues, :state
end
end