Don't know how to build task 'migrate'

Hi,

I have a rather simple problem. Just installed Rails on OS X Leopard and the database connection to MySQL doesn't work from Rails. I'm following Apples Expenses example (http://developer.apple.com/tools/rubyonrails.html). I've created the app with the command

   rails expenses -d mysql

I can connect to the database with a GUI tool, but Rails can't communicate with it.

When I run

  rake migrate

i get the error "Don't know how to build task 'migrate'".

The I found a thread here on Ruby Forum (Don't know how to build task 'migrate --? - Rails - Ruby-Forum) which describes almost the same problem and tried the command

   rake db:migrate --trace

which gives me this error:

When I run

rake migrate

i get the error "Don't know how to build task 'migrate'".

migrate was renamed db:migrate

rake aborted! ./db/migrate//001_accounts.rb:11: syntax error, unexpected $end, expecting kEND

Looks like you've a syntax error in that migration.

Fred

Hi Mortein,

I think u have syntax error on "End" keyword in   001_accounts.rb file.

Frederick Cheung wrote: