mirror of
https://github.com/TracksApp/tracks.git
synced 2026-01-01 14:58:50 +01:00
Fixes #632. Adds index for notes. This one needs rake db:migrate
Thanks jacannon. git-svn-id: http://www.rousette.org.uk/svn/tracks-repos/trunk@698 a4c988fc-2ded-0310-b66e-134b36920a42
This commit is contained in:
parent
d79d3e485b
commit
57d3d4a6ff
1 changed files with 11 additions and 0 deletions
11
tracks/db/migrate/037_add_index_to_notes.rb
Normal file
11
tracks/db/migrate/037_add_index_to_notes.rb
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
class AddIndexToNotes < ActiveRecord::Migration
|
||||
def self.up
|
||||
add_index :notes, [:project_id]
|
||||
add_index :notes, [:user_id]
|
||||
end
|
||||
|
||||
def self.down
|
||||
remove_index :notes, [:user_id]
|
||||
remove_index :notes, [:project_id]
|
||||
end
|
||||
end
|
||||
Loading…
Add table
Add a link
Reference in a new issue