rake engine_migrate ENGINE=login

A

AlMays

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.
 
A

AlMays

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,744
Messages
2,569,482
Members
44,901
Latest member
Noble71S45

Latest Threads

Top