ActiveRecord tree structures using PostgreSQL - Gem