Scott Johnson wrote:
> A nested set seems a little overkill.

It's not overkill at all if you're threading your comments.

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

Best,
--
Marnen Laibow-Koser
http://www.marnen.org
[email protected]

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