• Home
  • About Me
  • Musings
  • Programming
  • Computers
  • Open Source
  • Society
  • Books
  • Design
  • Movies
  • Rake Migrate – Aborted!

    Posted on April 28th, 2009 by Rajeshwaran S P

    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:

    1. Rails: Error with MySQL in welcome screen After installing rails, to test it, I created a rails...
    2. Continuous Integration with CruiseControl.Net I had challenges in understanding the documentation for installing and...
    3. Installing Rails : Local gem install After a unsuccessful installation of rails that took nearly 5...
    4. Rails Installation Installing Rails needs a lot of patience. The command is...

    Tags: , ,

    4 Responses to “Rake Migrate – Aborted!”

    1. Justin said :

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

    2. Rajeshwaran S P said :

      Welcome! Good to know that it helped.

    3. Mladjan said :

      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?

    4. Rajeshwaran S P said :

      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

    Leave a Reply