Commit d3038eee authored by Jean-Philippe Lang's avatar Jean-Philippe Lang

Adds an index on watchers table to speed up watched issue filtering.

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@2466 e93f8b46-1217-0410-a6f0-8f06a7374b81
parent 1c2cdedf
class AddWatchersUserIdTypeIndex < ActiveRecord::Migration
def self.up
add_index :watchers, [:user_id, :watchable_type], :name => :watchers_user_id_type
end
def self.down
remove_index :watchers, :name => :watchers_user_id_type
end
end
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment