-require 'lib/migrate'
+require 'migrate'
class CleanupOsmDb < ActiveRecord::Migration
def self.up
add_index "friends", ["user_id"], :name => "friends_user_id_idx"
remove_index "gps_points", :name => "points_uid_idx"
+ remove_index "gps_points", :name => "points_idx"
remove_column "gps_points", "user_id"
+ add_index "gps_points", ["latitude", "longitude"], :name => "points_idx"
change_column "gps_points", "trackid", :integer, :null => false
change_column "gps_points", "latitude", :integer, :null => false
change_column "gps_points", "longitude", :integer, :null => false
change_column "users", "creation_time", :datetime, :null => false
change_column "users", "display_name", :string, :default => "", :null => false
change_column "users", "data_public", :boolean, :default => false, :null => false
- change_column "users", "home_lat", :double
- change_column "users", "home_lon", :double
+ change_column "users", "home_lat", :double, :default => nil
+ change_column "users", "home_lon", :double, :default => nil
remove_index "users", :name => "users_email_idx"
add_index "users", ["email"], :name => "users_email_idx", :unique => true
remove_index "users", :name => "users_display_name_idx"