gitlab-org--gitlab-foss/db/migrate/20151020145526_add_services_template_index.rb
Yorick Peterse 7fc95d805d Added index on services.template
This column is queried when creating a new project, without an index
this query would lead to a sequence scan.
2015-10-29 12:09:25 +01:00

5 lines
115 B
Ruby

class AddServicesTemplateIndex < ActiveRecord::Migration
def change
add_index :services, :template
end
end