rubyonrailsin

A Ruby and Rails talk

Monday, March 29, 2010


Re: [Rails] Join tables

by rubyonrailsin 0 comments

Tag


Share this post:
Design Float
StumbleUpon
Reddit

On 29 March 2010 08:33, brianp <brian.o.pearce@gmail.com> wrote:
> Just working out my db schema before I start development and I got
> stuck on my join tables. With the way most associations work in rails
> already. Are join tables really needed? Rails will handle most of that
> auto magically so won't building and maintaining these tables in the
> application by hand be redundant?

Don't start by working out the db schema, start by defining the models
that map the objects you are modeling in the real world, then define
the associations between them. Whether you need hand crafted join
tables or not will then become clear.

Colin

>
> Just wondering your opinions.
>
> Cheers,
>
> --
> 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.
>
>

--
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

Subscribe feeds via e-mail

Blog Archive