Search code examples
ruby-on-railsruby-on-rails-4ancestry

Using ancestry gem, how do I allow 1 node to have 2 parents?


Each parent can already have more than 1 children. How do I allow the reverse, i.e. 1 child to 2 parents?

Is that even possible?


Solution

  • Not really. Ancestry models tree hierarchies - that's one parent per child node.