summaryrefslogtreecommitdiff
path: root/db/migrate
diff options
context:
space:
mode:
authorKamil Trzcinski <ayufan@ayufan.eu>2015-09-16 16:59:54 +0200
committerKamil Trzcinski <ayufan@ayufan.eu>2015-09-16 16:59:54 +0200
commit912f470497129b0d8759b18700299e38535e7bec (patch)
tree47d58838d15fb6de49f2e3a335df43db9e5b0348 /db/migrate
parent1b2a1d0ddd39ecc530c64563d0083e1e255f7c1a (diff)
downloadgitlab-ce-912f470497129b0d8759b18700299e38535e7bec.tar.gz
Fix ordering issue
Diffstat (limited to 'db/migrate')
-rw-r--r--db/migrate/20150916145038_add_index_for_committed_at_and_id.rb5
1 files changed, 5 insertions, 0 deletions
diff --git a/db/migrate/20150916145038_add_index_for_committed_at_and_id.rb b/db/migrate/20150916145038_add_index_for_committed_at_and_id.rb
new file mode 100644
index 00000000000..78d9e5f61a1
--- /dev/null
+++ b/db/migrate/20150916145038_add_index_for_committed_at_and_id.rb
@@ -0,0 +1,5 @@
+class AddIndexForCommittedAtAndId < ActiveRecord::Migration
+ def change
+ add_index :ci_commits, [:project_id, :committed_at, :id]
+ end
+end