Topic: Don't know how to build task 'migrate'

I have my migrate file created using "script/generate migration accounts" but then when I try and run "rake migrate" I get the following:

(in /usr/local/src/testapp)
rake aborted!
Don't know how to build task 'migrate'

(See full trace by running task with --trace)

-Jeremy- | Windows Server 2003 MCP

Re: Don't know how to build task 'migrate'

rake db:migrate

Re: Don't know how to build task 'migrate'

Robert Evans wrote:

rake db:migrate

Oh great, thanks for the help. That did it.

I was using this article: http://developer.apple.com/tools/rubyonrails.html and it just says 'rake migrate'

Thanks again Robert.

-Jeremy- | Windows Server 2003 MCP

Re: Don't know how to build task 'migrate'

That article is pretty outdated. Rails 2.0 just came out - hopefully there will be a new crop of updated tutorials pretty soon. Meantime, I'd highly recommend the Agile Web Development book (http://pragprog.com/titles/rails2/). Sitepoint's book (http://www.sitepoint.com/books/rails1/) is pretty good, but you may have already missed the free deal.

Ryan Heneise  |  Art of Mission  |  Now with extra-strong Donor Tools mojo

Re: Don't know how to build task 'migrate'

After reading the free SitePoint book and then reading the first 150 pages of the Pragmatic book, I can tell you that the Pragmatic book is so much better.  Definitely worth the money.

Re: Don't know how to build task 'migrate'

Any time you are unsure of what rake task to use, or forgot the name, etc, just go to the route of your rails application and type in (to the Terminal) rake -T. That will give you all the rake tasks associated with that rails application and rails itself.

Re: Don't know how to build task 'migrate'

I have my migrate file created using "script/generate migration some_file " but then when I try and run "rake migrate" I get the following:

rake aborted!
Don't know how to build task 'migrate'

(See full trace by running task with --trace)

Re: Don't know how to build task 'migrate'

are you serious?

Ryan Heneise  |  Art of Mission  |  Now with extra-strong Donor Tools mojo

Re: Don't know how to build task 'migrate'

if you look up, this was solved. wink

Re: Don't know how to build task 'migrate'

Iam serious only.. actually am new to ror... i didn't saw that answer.. now i realize that ans.. thanks for gave response to me... (ryenski, robert evans)

Last edited by jakthegr8 (2008-10-03 23:04:41)