I want to create a system for users to comment on posts where comments can also have replies. Since I can't do a self-referential HABTM relationship, I did some research and saw that I should be going about it in this manner:
Post
has_many :comments
end
Comment
belongs_to :user
belongs_to :post
has_many :replies, :class_name => 'Comment'
end
I know this isn't 100% correct (which is why I'm asking). If anyone could advise me on how to set up this sort of relationship and how I would need to create the migrations, I'd appreciate it!! Thanks!