]> source.dussan.org Git - redmine.git/commitdiff
Add index to workflows.tracker_id (#23743).
authorJean-Philippe Lang <jp_lang@yahoo.fr>
Sat, 1 Oct 2016 12:23:01 +0000 (12:23 +0000)
committerJean-Philippe Lang <jp_lang@yahoo.fr>
Sat, 1 Oct 2016 12:23:01 +0000 (12:23 +0000)
git-svn-id: http://svn.redmine.org/redmine/trunk@15859 e93f8b46-1217-0410-a6f0-8f06a7374b81

db/migrate/20161001122012_add_tracker_id_index_to_workflows.rb [new file with mode: 0644]

diff --git a/db/migrate/20161001122012_add_tracker_id_index_to_workflows.rb b/db/migrate/20161001122012_add_tracker_id_index_to_workflows.rb
new file mode 100644 (file)
index 0000000..10c4dd9
--- /dev/null
@@ -0,0 +1,9 @@
+class AddTrackerIdIndexToWorkflows < ActiveRecord::Migration
+  def self.up
+    add_index :workflows, :tracker_id
+  end
+
+  def self.down
+    remove_index :workflows, :tracker_id
+  end
+end