Fixes #632. Adds index for notes. This one needs rake db:migrate

Thanks jacannon.

git-svn-id: http://www.rousette.org.uk/svn/tracks-repos/trunk@698 a4c988fc-2ded-0310-b66e-134b36920a42
This commit is contained in:
lrbalt 2008-01-18 15:03:31 +00:00
parent d79d3e485b
commit 57d3d4a6ff

View file

@ -0,0 +1,11 @@
class AddIndexToNotes < ActiveRecord::Migration
def self.up
add_index :notes, [:project_id]
add_index :notes, [:user_id]
end
def self.down
remove_index :notes, [:user_id]
remove_index :notes, [:project_id]
end
end