Popularity
8.5
Growing
Activity
6.5
Stable
2,880
55
401

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: 201,122
Programming language: Ruby
License: MIT License

Ancestry alternatives and similar gems

Based on the "Tree" category

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

Add another 'Tree' Gem