Rake Migrate – Aborted!
Posted on by
Trying out a sample application using rails, I faced a problem, getting the database tables created (migrated) using ‘rake’. Running the command
1 | rake migrate |
threw the following error
1 2 3 4 5 | (in /home/rajesh/Programming/rails/todolist) rake aborted! Don't know how to build task 'migrate' (See full trace by running task with --trace) |
The search on internet forums only said that ‘rake migrate’ should do the job, but to no avail.
The actual command to get the tables created is
1 | rake db:migrate |
Hope this helps!
Possibly Related posts:
- Rails: Error with MySQL in welcome screen After installing rails, to test it, I created a rails...
- Continuous Integration with CruiseControl.Net I had challenges in understanding the documentation for installing and...
- Installing Rails : Local gem install After a unsuccessful installation of rails that took nearly 5...
- Rails Installation Installing Rails needs a lot of patience. The command is...
Tags: opensource, rails, rake

thank you. took many minutes, and your site finally solved the problem. needed to get that “db:” in there and it works fine.
Welcome! Good to know that it helped.
When I use “rake db:migrate” I get this message:
(in /Users/mladjanantic/myapp)
!!! The bundled mysql.rb driver has been removed from Rails 2.2. Please install the mysql gem and try again: gem install mysql.
rake aborted!
no such file to load — mysql
(See full trace by running task with –trace)
But I just install the mysql driver with coommand “sudo gem install mysql”.
What is the problem?
I assume you are using a Mac. I think the following links will be helpful to fix your error
http://forums.mysql.com/read.php?116,240223,240229
http://www.ruby-forum.com/topic/160358
http://www.ruby-forum.com/topic/180225