-require 'lib/migrate'
+require 'migrate'
+require 'rexml/document'
class CreateCountries < ActiveRecord::Migration
def self.up
maxlon = ele.get_text("bBoxEast").to_s
maxlat = ele.get_text("bBoxNorth").to_s
- Country.create(:code => code,
- :min_lat => minlat.to_f, :max_lat => maxlat.to_f,
- :min_lon => minlon.to_f, :max_lon => maxlon.to_f)
+ Country.create(
+ :code => code,
+ :min_lat => minlat.to_f, :max_lat => maxlat.to_f,
+ :min_lon => minlon.to_f, :max_lon => maxlon.to_f
+ )
end
end
end