Re: rake db:migrate - error ''tSYMBEG''

Phlip
Fri, 16 Feb 2007 18:20:13 -0000

Josh Josh wrote:

> rake aborted!
> ./db/migrate//003_add_test_data.rb:5: parse error, unexpected tSYMBEG
>    5.        :description =>
>
> (and the ''d'' in description has a little arrow below it
pointing up)

Welcome to how Ruby displays syntax errors. The language is so
flexible that it provides confusing diagnostics. This is why I compile
and test after only a few edits.

Post your whole file. Something on the line before this one left the
parser not expecting a symbol.

--
  Phlip
  http://c2.com/cgi/wiki?ZeekLand  <-- NOT a blog!!