[Rails] Error when creating table "left" in migration

Ingo Weiss ingoweiss at gmail.com
Mon May 1 10:04:53 GMT 2006


Hi,

I am getting an error when running a migration that is supposed to 
create tables called "bottom", "top", "left" and "right". Since "bottom" 
and "top" work just fine, my hunch is that in the SQL the "left" is 
mistaken for some join statement like "LEFT INNER JOIN".

Couln't one consider that a Rails bug? Shouldn't Rails be able to escape 
names that match SQL keywords? Or is it in fact not possible to create 
tables named like that?

And is there any way work around this?

Ingo Weiss

-- 
Posted via http://www.ruby-forum.com/.


More information about the Rails mailing list