On Jan 17, 2013, at 5:31 PM, Walter Lee D. wrote:
There will be a Posts and users can comment it, but I also want users can
I am pretty sure I am mis-remembering the name of the thing. The more I look at
it, the more wrong I think I am here.
Sorry for the noise. I’ll try to remember what I was thinking of here…
Maybe this: https://github.com/stefankroes/ancestry
Not a linked list, but something called a “materialized path”.
I figured out why I was thinking STI – I made a forum years ago that
had Threads and Comments, organized in an STI table. There was only one
layer of inheritance, not what the OP was asking for. If you were only
ever looking at a chronological list of comments, you could have a
:parent attribute that was a self-reference to another record in the
same table. That could give you your nesting structure, simply by
looking up the chain of ancestors to the root.