fix #936 by adding index on state for todos. Needs migration of database.

This commit is contained in:
Reinier Balt 2010-05-02 18:25:25 +02:00
parent 06ac3067d3
commit 0198a2fa13

View file

@ -0,0 +1,9 @@
class AddIndexToTodoState < ActiveRecord::Migration
def self.up
add_index :todos, :state
end
def self.down
remove_index :todos, :state
end
end