Problem with rake db:migrate

Sergey Shilov sss at s-s-s.ru
Thu Jul 19 12:46:49 BST 2012


Hello.
I attempt to install a local copy of a osm-website on the server under
FreeBSD 8.2.
To be exact, I try to upgrade the rails port v2.* to v3.* by the full installation.
However now, on a step 'rake db:migrate' I receive a following error:
-----
rake db:migrate
==  CreateCountries: migrating ================================================
-- innodb_table()
   -> 0.0001s
-- create_table(:countries, {:options=>"", :force=>true, :id=>false})
NOTICE:  CREATE TABLE will create implicit sequence "countries_id_seq" for serial column "countries.id"
NOTICE:  CREATE TABLE / PRIMARY KEY will create implicit index "countries_pkey" for table "countries"
   -> 0.0110s
-- add_index(:countries, [:code], {:unique=>true, :name=>"countries_code_idx"})
   -> 0.0035s
rake aborted!
An error has occurred, this and all later migrations canceled:

Can't mass-assign protected attributes: code, max_lon, min_lat, max_lat, min_lon

Tasks: TOP => db:migrate
(See full trace by running task with --trace)
------

Can somebody tell me what it is possible to make to correct this error?

Thank you,
Sergey




More information about the rails-dev mailing list