gitlab-org--gitlab-foss/db/migrate/20151026182941_add_project_path_index.rb
Kamil Trzcinski 01c7769c75 Add projects path index
Fixes performance regression introduced by MR1649
2015-10-26 20:21:26 +01:00

9 lines
154 B
Ruby

class AddProjectPathIndex < ActiveRecord::Migration
def up
add_index :projects, :path
end
def down
remove_index :projects, :path
end
end