I have a hierarchical structure for the Board model (implemented using a family tree).
Instead of one model and some areas, I would like to have two models: Board for elements of the root level ( ancestry value of the nil column) and Category for the rest ( ancestry value of the column not nil ). They will use the same boards table.
How can I do something like this?
ruby-on-rails ruby-on-rails-3
Marcin doliwa
source share