]> git.openstreetmap.org Git - rails.git/blob - db/migrate/017_add_gpx_indexes.rb
Prevent scrollbars showing up on the edit view
[rails.git] / db / migrate / 017_add_gpx_indexes.rb
1 class AddGpxIndexes < ActiveRecord::Migration
2   def self.up
3     add_index "gpx_files", ["user_id"], :name => "gpx_files_user_id_idx"
4     add_index "gpx_file_tags", ["tag"], :name => "gpx_file_tags_tag_idx"
5   end
6
7   def self.down
8     remove_index "gpx_file_tags", :name => "gpx_file_tags_tag_idx"
9     remove_index "gpx_files", :name => "gpx_files_user_id_idx"
10   end
11 end