On Oct 16, 8:43 am, Marnen Laibow-Koser <rails-mailing-l...@andreas-
s.net> wrote:
> Scott Johnson wrote:
> > A nested set seems a little overkill.
>
> It's not overkill at all if you're threading your comments.
Good point, and I hadn't thought of that, but I don't need nesting.
> > I realized I could make two polymorphic associations: one in Comments,
> > and one in the join table for commentable_subscribers.
>
> > I'm not sure if that's a better plan or not, though. I like that I can
> > enforce foreign key constraints when I use the extra CommentGroup
> > table.
>
> Why not keep CommentGroup and have a polymorphic association that will
> bind it to either BlogPost or BugReport?
That sounds like the best plan. Thanks for the help.
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---