Add some extra indexes.
This commit is contained in:
parent
9b1b6be371
commit
66a2558e65
1 changed files with 11 additions and 0 deletions
11
db/migrate/017_add_gpx_indexes.rb
Normal file
11
db/migrate/017_add_gpx_indexes.rb
Normal file
|
@ -0,0 +1,11 @@
|
|||
class AddGpxIndexes < ActiveRecord::Migration
|
||||
def self.up
|
||||
add_index "gpx_files", ["user_id"], :name => "gpx_files_user_id_idx"
|
||||
add_index "gpx_file_tags", ["tag"], :name => "gpx_file_tags_tag_idx"
|
||||
end
|
||||
|
||||
def self.down
|
||||
remove_index "gpx_file_tags", :name => "gpx_file_tags_tag_idx"
|
||||
remove_index "gpx_files", :name => "gpx_files_user_id_idx"
|
||||
end
|
||||
end
|
Loading…
Add table
Add a link
Reference in a new issue