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!

Advertisements

4 thoughts on “Rake Migrate – Aborted!

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

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s