On Fri, Sep 3, 2010 at 2:47 PM, E. Litwin <[email protected]> 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 ------------------------ [email protected]
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 [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.

Reply via email to