Rake Migrate – Aborted!

Trying out a sample application using rails, I faced a problem, getting the database tables created (migrated) using ‘rake’. Running the command

rake migrate

threw the following error

(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

rake db:migrate

Hope this helps!

Comments

4 responses to “Rake Migrate – Aborted!”

  1. Justin Avatar
    Justin

    thank you. took many minutes, and your site finally solved the problem. needed to get that “db:” in there and it works fine.

    1. Rajeshwaran S P Avatar

      Welcome! Good to know that it helped.

  2. Mladjan Avatar

    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?

Leave a reply to Rajeshwaran S P Cancel reply