Rake engine_migrate ENGINE=login

Hello.

While using the subject command I get the following error:

** Invoke engine_migrate (first_time)
** Invoke db:migrate:engines (first_time)
** Invoke environment (first_time)
** Execute environment
** Execute db:migrate:engines
Migrating engine ‘login_engine’
** Invoke db_schema_dump (first_time)
** Invoke db:schema:dump (first_time)
** Invoke environment
** Execute db:schema:dump
rake aborted!
undefined method `each’ for #Mysql:0x27308d8

What can I do? I am a RoR Dummy.

Ok.

I solved it.
Had to recompile gem mysql

Didn’t come up that easy.

First I had to go to
/opt/local/lib/ruby/gems/1.8/gems/mysql-2.7
and run
sudo ruby extconf.rb
–with-mysql-config=/opt/local/lib/mysql5/bin/mysql_config
manually from there.

That made a proper Makefile

And only after that
sudo gem install mysql
started to work.

Mysql5