Skip to content
Snippets Groups Projects
Commit e4bb20d8 authored by Yorick Peterse's avatar Yorick Peterse Committed by Rubén Dávila
Browse files

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.
parent 5b60d70e
No related branches found
No related tags found
No related merge requests found
class AddIssuesStateIndex < ActiveRecord::Migration
def change
add_index :issues, :state
end
end
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment