I read before inheritance in mongoid and it seems that all the inherited classes will be stored in the base class, for example.
class BaseClass end class ChildClass1 < BaseClass end class ChildClass2 < BaseClass end
It seems that they are all stored in the BaseClass collection.
I really want them to be stored in separate collections, for example. ChildClass1 - collection and ChildClass2 - collection .
collections inheritance ruby-on-rails mongodb mongoid
Boenne
source share