Popularity
8.4
Stable
Activity
6.8
Growing
2,856
54
398

Description

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.

Code Quality Rank: L4
Monthly Downloads: 169,203
Programming language: Ruby
License: MIT License

Ancestry alternatives and related gems

Based on the "Tree" category

Do you think we are missing an alternative of Ancestry or a related project?

Add another 'Tree' Gem

Ancestry Recommendations

There 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.
Recommend Ancestry

Recently added Ancestry resources

Do you know of a usefull tutorial, book or news relevant to Ancestry?
Be the first to add one!