OSCON: Rails with legacy apps
This was a great presentation. It was about making Rails work with your legacy database schemas. You know, the ones that don’t use “id” for the PK on every table. The one without plural tables. He hit most of the important methods. Using set_primary_key to define your own primary key. (e.g. “PersonID” instead of just “id”). You can also set the table name for the model using the (tah-da) set_table_name method. I would use that instead of telling Rails to not use plurals.
I’d also mention that there is support for MS Sql Server with Rails. It’s easier to do on a Windows machine than it is from OS X or Linux. For both of those it looks like configuring an ODBC driver on the machine and using that is your best bet.
Technorati Tags:
OSCON, OSCON06


