Class: Dagable::Ancestry
- Inherits:
-
ActiveRecord::Base
- Object
- ActiveRecord::Base
- Dagable::Ancestry
- Defined in:
- lib/dagable/ancestry.rb
Overview
Abstract base class for ancestry records. Each dagable
model gets a concrete subclass (e.g. Category::Ancestry) backed by
{table}_ancestries.
Each row represents a path between a predecessor and successor with a given depth:
depth 0— self-referential row (every node has one)depth 1— direct parent-child relationshipdepth N— transitive relationship N edges apart