From 973c9484b091e7554f8cd78fdb3f640aa364f7ce Mon Sep 17 00:00:00 2001 From: Jean-Philippe Lang Date: Sat, 1 Oct 2016 12:23:01 +0000 Subject: [PATCH] Add index to workflows.tracker_id (#23743). git-svn-id: http://svn.redmine.org/redmine/trunk@15859 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- .../20161001122012_add_tracker_id_index_to_workflows.rb | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 db/migrate/20161001122012_add_tracker_id_index_to_workflows.rb 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 index 000000000..10c4dd97b --- /dev/null +++ b/db/migrate/20161001122012_add_tracker_id_index_to_workflows.rb @@ -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 -- 2.39.5