Have you ever posted a comment on a blog post or some other social media platform? Where a comment can have many replies and that reply can further have many replies and so on.
Here the concept of self-referential associations comes.
So, let's learn self-referential associations in rails.
I've used this concept of self-referential associations
and created a very basic app named "Comment Tree App"
.