mirror of
https://github.com/TracksApp/tracks.git
synced 2025-12-19 08:40:12 +01:00
9 lines
No EOL
159 B
Ruby
9 lines
No EOL
159 B
Ruby
class AddIndexToTodoState < ActiveRecord::Migration
|
|
def self.up
|
|
add_index :todos, :state
|
|
end
|
|
|
|
def self.down
|
|
remove_index :todos, :state
|
|
end
|
|
end |