Hi, I'm trying to migrate to sqlite3 and I get this error: syntax error, unexpected '\n', expecting tCOLON2 or '[' or '.' I'm running OS X 10.5 on an Intel mac. I've installed the sqlite gem. I'm not sure what's going on here. Any ideas? Thanks, Ron
on 03.06.2008 07:55
on 03.06.2008 08:16
On Tue, Jun 3, 2008 at 7:54 AM, Ron <stecklyenator@gmail.com> wrote: > > Hi, > > I'm trying to migrate to sqlite3 and I get this error: > > syntax error, unexpected '\n', expecting tCOLON2 or '[' or '.' > > I'm running OS X 10.5 on an Intel mac. I've installed the sqlite > gem. I'm not sure what's going on here. Any ideas? Is there more context? Like a file and line number where that happens?
on 03.06.2008 10:09
Can you post the code that is throwing the problem? Hard to diagnose this without it :) - Derek
on 03.06.2008 15:26
Hi sorry, The code causing the problem is the auto generated migration from the generate scaffold command in Rails 2.1.0.
on 31.07.2008 09:55
I had the same problem. It was a problem with scaffold- The scaffold was creating in the migration file statements of the form: t.string, :title which should be t.string :title The developers have probably fixed it by now. This is just fyi for other people encountering this problem. Cheers