mirror of
https://github.com/TracksApp/tracks.git
synced 2025-12-17 07:40:12 +01:00
forgot to add new migration in last commit
This commit is contained in:
parent
edb6afd115
commit
c6dc3fcd5b
2 changed files with 16 additions and 0 deletions
|
|
@ -22,3 +22,4 @@ unless todo.project.nil?
|
||||||
result_string << "(" + todo.project.name + ")"
|
result_string << "(" + todo.project.name + ")"
|
||||||
end
|
end
|
||||||
-%><%= result_string -%>
|
-%><%= result_string -%>
|
||||||
|
|
||||||
|
|
|
||||||
15
db/migrate/040_add_several_indexes.rb
Normal file
15
db/migrate/040_add_several_indexes.rb
Normal file
|
|
@ -0,0 +1,15 @@
|
||||||
|
class AddSeveralIndexes < ActiveRecord::Migration
|
||||||
|
def self.up
|
||||||
|
add_index :taggings, [:taggable_id, :taggable_type]
|
||||||
|
add_index :taggings, :tag_id
|
||||||
|
add_index :recurring_todos, :user_id
|
||||||
|
add_index :recurring_todos, :state
|
||||||
|
end
|
||||||
|
|
||||||
|
def self.down
|
||||||
|
remove_index :taggings, [:taggable_id, :taggable_type]
|
||||||
|
remove_index :taggings, :tag_id
|
||||||
|
remove_index :recurring_todos, :user_id
|
||||||
|
remove_index :recurring_todos, :state
|
||||||
|
end
|
||||||
|
end
|
||||||
Loading…
Add table
Add a link
Reference in a new issue