Ruby on Rails Monday, January 12, 2015

Colin Law wrote in post #1166568:
> If I understand correctly then possibly you will want a join model
> called something like attendance where
> user has_many attendances
> user has_many events through attendances
>
> event has_many attendances
> event has_many users through attendances
>
> attendance belongs to event and belongs to user.
>
> What on earth is an activism_co_user?
>
> Colin

As in does it need some form of id within the attendance model - I'll
have to create a separate table for it. I just need the traditional db
properties that you might use in this instance.

:attendances

--
Posted via http://www.ruby-forum.com/.

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/445ac1a8f9cb89427b800c96a3da42a4%40ruby-forum.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment