Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKamil Trzcinski <ayufan@ayufan.eu>2015-10-26 21:31:15 +0300
committerKamil Trzcinski <ayufan@ayufan.eu>2015-10-26 22:21:26 +0300
commit01c7769c7529ca6d4036220052d78fc7284262f7 (patch)
treef2fceb1ae3c5c74195a6c939e555d96a358d6bce /db/migrate/20151026182941_add_project_path_index.rb
parent98cc695afb2fc97a1ca897ad28741612bcde88a3 (diff)
Add projects path index
Fixes performance regression introduced by MR1649
Diffstat (limited to 'db/migrate/20151026182941_add_project_path_index.rb')
-rw-r--r--db/migrate/20151026182941_add_project_path_index.rb9
1 files changed, 9 insertions, 0 deletions
diff --git a/db/migrate/20151026182941_add_project_path_index.rb b/db/migrate/20151026182941_add_project_path_index.rb
new file mode 100644
index 00000000000..a62fe199d70
--- /dev/null
+++ b/db/migrate/20151026182941_add_project_path_index.rb
@@ -0,0 +1,9 @@
+class AddProjectPathIndex < ActiveRecord::Migration
+ def up
+ add_index :projects, :path
+ end
+
+ def down
+ remove_index :projects, :path
+ end
+end