]> source.dussan.org Git - redmine.git/commitdiff
Adds an index on issues parent_id (#23987).
authorJean-Philippe Lang <jp_lang@yahoo.fr>
Tue, 20 Dec 2016 09:12:52 +0000 (09:12 +0000)
committerJean-Philippe Lang <jp_lang@yahoo.fr>
Tue, 20 Dec 2016 09:12:52 +0000 (09:12 +0000)
git-svn-id: http://svn.redmine.org/redmine/trunk@16103 e93f8b46-1217-0410-a6f0-8f06a7374b81

db/migrate/20161220091118_add_index_on_issues_parent_id.rb [new file with mode: 0644]

diff --git a/db/migrate/20161220091118_add_index_on_issues_parent_id.rb b/db/migrate/20161220091118_add_index_on_issues_parent_id.rb
new file mode 100644 (file)
index 0000000..1cc94b0
--- /dev/null
@@ -0,0 +1,5 @@
+class AddIndexOnIssuesParentId < ActiveRecord::Migration
+  def change
+    add_index :issues, :parent_id
+  end
+end