From: Ryan Davis Date: 2005-09-16T01:43:48+09:00 Subject: Re: [ANN] Zero to Rails On Sep 15, 2005, at 6:53 AM, Gavin Kistner wrote: > On Sep 15, 2005, at 4:05 AM, Ryan Davis wrote: > >> From absolutely nothing to a running rails app in under two >> minutes. SQL not required. >> > > BTW, that's frickin' awesome. I've wanted OG->SQL for a very long > time. > > How hard do you think it would be to modify your script to support > tables that looked like this: > http://phrogz.net/tmp/BoulderMenuTables-b.png Well, it'd be easier to modify your data. 1) OG4 now has tables which will make your life a LOT easier. It wasn't obvious, but in the movie I was adding new cells (rects) to a table (group), not just adding a line to a text element. It looks like it supports almost all of your diagram already, with the exception of having your PK be something other than integer (I think the PK generation assumes int iirc). Oh, and we'd have to add "TABLE" to the first field. > Trickiest, I suppose, would be detecting the 'green' habtm tables > and not creating models for them. And how would you or do you > detect which nodes were FKs? Just the _id at the end? It'd do your HABTM's just fine.