##// END OF EJS Templates
Adds an index on watchers table to speed up watched issue filtering....
Jean-Philippe Lang -
r2405:d3038eee9250
parent child
Show More
@@ -0,0 +1,9
1 class AddWatchersUserIdTypeIndex < ActiveRecord::Migration
2 def self.up
3 add_index :watchers, [:user_id, :watchable_type], :name => :watchers_user_id_type
4 end
5
6 def self.down
7 remove_index :watchers, :name => :watchers_user_id_type
8 end
9 end
General Comments 0
You need to be logged in to leave comments. Login now