diff --git a/db/migrate/20100502162317_add_index_to_todo_state.rb b/db/migrate/20100502162317_add_index_to_todo_state.rb new file mode 100644 index 00000000..6e3d01bf --- /dev/null +++ b/db/migrate/20100502162317_add_index_to_todo_state.rb @@ -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 \ No newline at end of file