X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/864a688dd3dcbe6b50a5373a130aa3b2436ade0d..8fb3d7365fb91d1822ae5f37361af077d48a9c8c:/db/migrate/031_create_countries.rb?ds=inline diff --git a/db/migrate/031_create_countries.rb b/db/migrate/031_create_countries.rb index 3ee4a8d77..337e86fde 100644 --- a/db/migrate/031_create_countries.rb +++ b/db/migrate/031_create_countries.rb @@ -1,4 +1,4 @@ -require 'lib/migrate' +require 'migrate' require 'rexml/document' class CreateCountries < ActiveRecord::Migration @@ -24,9 +24,11 @@ class CreateCountries < ActiveRecord::Migration 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