Ruby on Rails Friday, September 3, 2010

On Fri, Sep 3, 2010 at 2:47 PM, E. Litwin <elitwin@rocketmail.com> wrote:

> Odds are, you will need to tell Rails what the primary key of your
> legacy table is, unless it happens to be "id"

Absolutely, and odds are the OP will encounter other grief in the form
of naming conventions/pluralization yadda yadda. :-)

But creating a model and seeing what happens and where it breaks[*]
is the best way to start, IMO. And as a matter of fact I'm currently up
to my armpits in a similar project, though I do have the leeway to do
a few Railsizations to the db schema, thankfully.

[*] by writing tests, hopefully!

FWIW,
--
Hassan Schroeder ------------------------ hassan.schroeder@gmail.com
twitter: @hassan

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

No comments:

Post a Comment