ltree_hierarchy icon indicating copy to clipboard operation
ltree_hierarchy copied to clipboard

Organize ActiveRecord models into a tree using PostgreSQL's ltree datatype

Results 6 ltree_hierarchy issues
Sort by recently updated
recently updated
newest added

Hi, I've been evaluating this gem for a project I'm working on and I'm a bit confused about the reliance on a `parent_id` here. The parent is always obvious by...

Right now the gem extends `ActiveRecord::Base` with all the supported class methods, which means they will be included in every model in the app, not just the ones with `ltree`...

Currently this gem is incompatible with UUID primary keys. This is because postgres does not allow hyphens in `lpath` values. I've tried overriding `ltree_fragment_column` to try and sanitize the UUID...

## Overview I cannot create root node using Rails 6 and ActiveRecord version 6. I am getting `Validation failed: Parent must exist` error. When I set parent to be some...

Suppose I have a table `nodes` with attributes `id`, `parent_id`, and `name`. It would but much more convenient for the paths to use names instead of ids, at least for...

We have a situation where children can be input before their parents on a tree structure. It seems that when the parent is added there are issues updating the children....