Re: default database schema and relationships

arigold
2007-02-14T00:34:44Z

thank you philip..

dont quite get the "i ARE a high school teacher" joke but maybe thats
because i just got home and had back to back 10th and 9th graders.
maybe, just maybe 14 - 16 year olds arent biologically able to be
focused after 8 hours of school.. hmm.. ; )

i just might get that rails recipes book but from your short answer i
dont think that it answers my question.  it seems like you''re looking
to bend rails to the legacy database.  i want to - yes its true - bend
the legacy database to rails'' defaults.  i want to change the ID
column from "student_id" to "id".  actually, ive done that
one
already.. im wondering what other things i''ll need to change in the
legacy database to make it comply with the rails defaults.

any ideas?

in any event, thanks for pointing that book out..

all the best..~ari

On Feb 13, 12:06 am, "Phlip"
<phlip2...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
wrote:
> arigold wrote:
> > i''m a high school teacher
>
> Don''t you mean "i ARE a high school teacher"? ;-)
>
> > have read both the pickax and version 2 of agile web dev...
>
> Grab /Rails Recipes/, by Chad Fowler, and hie thee hence to page 73,
> "Integrating with Legacy Databases". The shortest answer is you
must start
> using all the defaults that you currently leave out of the ActiveRecord
> calls. Google for ActiveRecord::Base.set_primary_key or .table_name_prefix
> for a preview.
>
> --
>   Phlip
>  http://www.greencheese.us/ZeekLand<-- NOT a blog!!!