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:
authorValery Sizov <valery@gitlab.com>2016-02-09 16:10:22 +0300
committerValery Sizov <valery@gitlab.com>2016-02-09 16:10:22 +0300
commit6c3cd241e87938373d31d5d4914fccda74145e02 (patch)
tree02e5f6d60a7b78bcfb8d35083e300e67003d5064 /db/migrate/20160209130428_add_index_to_snippet.rb
parent643c61867cc99f626d58798a5365e7573f90b176 (diff)
Add index for snippet's updated_at
Diffstat (limited to 'db/migrate/20160209130428_add_index_to_snippet.rb')
-rw-r--r--db/migrate/20160209130428_add_index_to_snippet.rb5
1 files changed, 5 insertions, 0 deletions
diff --git a/db/migrate/20160209130428_add_index_to_snippet.rb b/db/migrate/20160209130428_add_index_to_snippet.rb
new file mode 100644
index 00000000000..95d5719be59
--- /dev/null
+++ b/db/migrate/20160209130428_add_index_to_snippet.rb
@@ -0,0 +1,5 @@
+class AddIndexToSnippet < ActiveRecord::Migration
+ def change
+ add_index :snippets, :updated_at
+ end
+end