mirror of
https://github.com/TracksApp/tracks.git
synced 2025-12-24 03:00:12 +01:00
fix #936 by adding index on state for todos. Needs migration of database.
This commit is contained in:
parent
06ac3067d3
commit
0198a2fa13
1 changed files with 9 additions and 0 deletions
9
db/migrate/20100502162317_add_index_to_todo_state.rb
Normal file
9
db/migrate/20100502162317_add_index_to_todo_state.rb
Normal 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
|
||||
Loading…
Add table
Add a link
Reference in a new issue