I have a forum-type application. The Board model has many comments, the
Comments model acts as a tree. So I have a board with multiple
comments, some comments are parent comments and there are comments that
belong to a parent comment, making up a thread.
Like most forums, I want it so that threads are sorted based on the date
of their last comment. But I have no idea how to specify this in the
has_many :order of the Board model.
But more than this, I want it so that a thread can only be bumped X many
times; after the Xth comment the board
Previously I was doing it in a rather clunky way with a table column for
each parent comment that specifies when the thread was last replied to.
I don’t think this is the cleanest way of doing it but it works. Any