Understanding Rails ActiveRecord “single model” self joins
问题 I'm having a hard time understanding how to implement a single model self-join in Rails. The Guide to ActiveRecord Associations section 2.10 briefly explains Self-Joins but doesn't offer enough information, and every example or post about this such references the Friendly Friend Railcast example that isn't a single model self join, as described in the Rails Guide section 2.10. The idea is a model that has_many and belongs_to itself, without needing a separate table for the relationship. The