Forum: Ruby on Rails Problem with Rails 2.2 and Rake db:migrate

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
1c55d69d845f5e2a5dfd021f7ff3ab5c?d=identicon&s=25 вoх(tm) (Guest)
on 2008-11-05 16:36
(Received via mailing list)
Hello,

I have a problem when I execute

rake db:migrate
(in /Users/miguelati/Proyectos/Proyectos Ruby/foro)
rake aborted!
can't convert Fixnum into String

With trace:

** Invoke db:migrate (first_time)
** Invoke environment (first_time)
** Execute environment
** Execute db:migrate
rake aborted!
can't convert Fixnum into String
/Library/Ruby/Gems/1.8/gems/activerecord-2.2.0/lib/active_record/
connection_adapters/mysql_adapter.rb:292:in `change_user'
/Library/Ruby/Gems/1.8/gems/activerecord-2.2.0/lib/active_record/
connection_adapters/mysql_adapter.rb:292:in `reset!'
/Users/miguelati/.gem/ruby/1.8/gems/activesupport-2.2.0/lib/
active_support/callbacks.rb:178:in `send'
/Users/miguelati/.gem/ruby/1.8/gems/activesupport-2.2.0/lib/
active_support/callbacks.rb:178:in `evaluate_method'
/Users/miguelati/.gem/ruby/1.8/gems/activesupport-2.2.0/lib/
active_support/callbacks.rb:166:in `call'
/Users/miguelati/.gem/ruby/1.8/gems/activesupport-2.2.0/lib/
active_support/callbacks.rb:90:in `run'
/Users/miguelati/.gem/ruby/1.8/gems/activesupport-2.2.0/lib/
active_support/callbacks.rb:90:in `each'
/Users/miguelati/.gem/ruby/1.8/gems/activesupport-2.2.0/lib/
active_support/callbacks.rb:90:in `send'
/Users/miguelati/.gem/ruby/1.8/gems/activesupport-2.2.0/lib/
active_support/callbacks.rb:90:in `run'
/Users/miguelati/.gem/ruby/1.8/gems/activesupport-2.2.0/lib/
active_support/callbacks.rb:277:in `run_callbacks'
/Library/Ruby/Gems/1.8/gems/activerecord-2.2.0/lib/active_record/
connection_adapters/abstract/connection_pool.rb:249:in
`checkout_and_verify'
/Library/Ruby/Gems/1.8/gems/activerecord-2.2.0/lib/active_record/
connection_adapters/abstract/connection_pool.rb:239:in
`checkout_new_connection'
/Library/Ruby/Gems/1.8/gems/activerecord-2.2.0/lib/active_record/
connection_adapters/abstract/connection_pool.rb:180:in `checkout'
/Library/Ruby/Gems/1.8/gems/activerecord-2.2.0/lib/active_record/
connection_adapters/abstract/connection_pool.rb:176:in `loop'
/Library/Ruby/Gems/1.8/gems/activerecord-2.2.0/lib/active_record/
connection_adapters/abstract/connection_pool.rb:176:in `checkout'
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/
1.8/monitor.rb:242:in `synchronize'
/Library/Ruby/Gems/1.8/gems/activerecord-2.2.0/lib/active_record/
connection_adapters/abstract/connection_pool.rb:175:in `checkout'
/Library/Ruby/Gems/1.8/gems/activerecord-2.2.0/lib/active_record/
connection_adapters/abstract/connection_pool.rb:90:in `connection'
/Library/Ruby/Gems/1.8/gems/activerecord-2.2.0/lib/active_record/
connection_adapters/abstract/connection_pool.rb:321:in
`retrieve_connection'
/Library/Ruby/Gems/1.8/gems/activerecord-2.2.0/lib/active_record/
connection_adapters/abstract/connection_specification.rb:121:in
`retrieve_connection'
/Library/Ruby/Gems/1.8/gems/activerecord-2.2.0/lib/active_record/
connection_adapters/abstract/connection_specification.rb:113:in
`connection'
/Library/Ruby/Gems/1.8/gems/activerecord-2.2.0/lib/active_record/
migration.rb:429:in `initialize'
/Library/Ruby/Gems/1.8/gems/activerecord-2.2.0/lib/active_record/
migration.rb:394:in `new'
/Library/Ruby/Gems/1.8/gems/activerecord-2.2.0/lib/active_record/
migration.rb:394:in `up'
/Library/Ruby/Gems/1.8/gems/activerecord-2.2.0/lib/active_record/
migration.rb:377:in `migrate'
/Library/Ruby/Gems/1.8/gems/rails-2.2.0/lib/tasks/databases.rake:111
/Users/miguelati/.gem/ruby/1.8/gems/rake-0.8.3/lib/rake.rb:617:in
`call'
/Users/miguelati/.gem/ruby/1.8/gems/rake-0.8.3/lib/rake.rb:617:in
`execute'
/Users/miguelati/.gem/ruby/1.8/gems/rake-0.8.3/lib/rake.rb:612:in
`each'
/Users/miguelati/.gem/ruby/1.8/gems/rake-0.8.3/lib/rake.rb:612:in
`execute'
/Users/miguelati/.gem/ruby/1.8/gems/rake-0.8.3/lib/rake.rb:578:in
`invoke_with_call_chain'
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/
1.8/monitor.rb:242:in `synchronize'
/Users/miguelati/.gem/ruby/1.8/gems/rake-0.8.3/lib/rake.rb:571:in
`invoke_with_call_chain'
/Users/miguelati/.gem/ruby/1.8/gems/rake-0.8.3/lib/rake.rb:564:in
`invoke'
/Users/miguelati/.gem/ruby/1.8/gems/rake-0.8.3/lib/rake.rb:2019:in
`invoke_task'
/Users/miguelati/.gem/ruby/1.8/gems/rake-0.8.3/lib/rake.rb:1997:in
`top_level'
/Users/miguelati/.gem/ruby/1.8/gems/rake-0.8.3/lib/rake.rb:1997:in
`each'
/Users/miguelati/.gem/ruby/1.8/gems/rake-0.8.3/lib/rake.rb:1997:in
`top_level'
/Users/miguelati/.gem/ruby/1.8/gems/rake-0.8.3/lib/rake.rb:2036:in
`standard_exception_handling'
/Users/miguelati/.gem/ruby/1.8/gems/rake-0.8.3/lib/rake.rb:1991:in
`top_level'
/Users/miguelati/.gem/ruby/1.8/gems/rake-0.8.3/lib/rake.rb:1970:in
`run'
/Users/miguelati/.gem/ruby/1.8/gems/rake-0.8.3/lib/rake.rb:2036:in
`standard_exception_handling'
/Users/miguelati/.gem/ruby/1.8/gems/rake-0.8.3/lib/rake.rb:1967:in
`run'
/Users/miguelati/.gem/ruby/1.8/gems/rake-0.8.3/bin/rake:31
/usr/bin/rake:19:in `load'
/usr/bin/rake:19

This error is only with 2.2, with 2.1.2 works fine.
This topic is locked and can not be replied to.