Comparing ancestry and closure_tree for your nested data structure Sun, Sep 13, 2015 When it comes to implementing ActiveRecord nesting, there are a few popular implementations. In this post I will look closer at how Ancestry and Closure tree work and what the pros and cons are. How ancestry works Ancestry works by adding one column (by default named “ancestry”) that replaces the parent_id. Instea