Ancestry is a gem/plugin that allows the records of a Ruby on Rails ActiveRecord model to be organised as a tree structure (or hierarchy). It uses a single, intuitively formatted database column, using a variation on the materialised path pattern. It exposes all the standard tree structure relations (ancestors, parent, root, children, siblings, descendants) and all of them can be fetched in a single SQL query. Additional features are STI support, scopes, depth caching, depth constraints, easy migration from older plugins/gems, integrity checking, integrity restoration, arrangement of (sub)tree into hashes and different strategies for dealing with orphaned records.
Ancestry alternatives and related gems
Based on the "Tree" category
* Code Quality Rankings and insights are calculated and provided by Lumnify.
They vary from L1 to L5 with "L5" being the highest. Visit our partner's website for more details.
Do you think we are missing an alternative of Ancestry or a related project?
Ancestry RecommendationsThere are no recommendations yet. Be the first to promote Ancestry!
Have you used Ancestry? Share your experience. Write a short recommendation and Ancestry, you and your project will be promoted on Awesome Ruby.
Recently added Ancestry resources
Be the first to add one!