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>2016-07-15 16:46:49 +0300
committerKamil Trzcinski <ayufan@ayufan.eu>2016-07-15 18:42:27 +0300
commit7993fc1b89f6a8903fea0aa9586b1ed1d8a3b29e (patch)
tree650bcd3a8666cbc11627d7f1020e7667ad3a1043 /db/migrate/20160715134306_add_index_for_pipeline_user_id.rb
parent1556d4848d4753b7bddd8430cf223b91e6f47b0f (diff)
Add index for user_id of pipeline
Diffstat (limited to 'db/migrate/20160715134306_add_index_for_pipeline_user_id.rb')
-rw-r--r--db/migrate/20160715134306_add_index_for_pipeline_user_id.rb7
1 files changed, 7 insertions, 0 deletions
diff --git a/db/migrate/20160715134306_add_index_for_pipeline_user_id.rb b/db/migrate/20160715134306_add_index_for_pipeline_user_id.rb
new file mode 100644
index 00000000000..ac5d2bec681
--- /dev/null
+++ b/db/migrate/20160715134306_add_index_for_pipeline_user_id.rb
@@ -0,0 +1,7 @@
+class AddIndexForPipelineUserId < ActiveRecord::Migration
+ include Gitlab::Database::MigrationHelpers
+
+ def change
+ add_index :ci_commits, :user_id
+ end
+end