stefankroes/ancestry — Issue #87: using has_ancestry in inherited class throws error
Author: jtromp
Created: 2012-02-28 13:53:48+00:00
State: open

When I add "has_ancestry" in a subclass of another class (that inherites from ActiveRecord:Base), an error is thrown in development mode:

Mysql::Error: Table 'AUTHORABLE.groups' doesn't exist: SHOW FIELDS FROM `groups`

The class hierarchy in this case is: ActiveRecord::Base > Authorable > Group

The Group class has "has_ancestry" defined. Is this expected behaviour, or is there a solution? I could not find anything related to this in the documentation.