Details
Description
Using the Versionable behavior on a model which has a column with an alias and which is also primary causes the generation of a wrong version of the versionable table.
Example:
ModelFoo: model_id as id username password
Generates tables:
model_foo (model_id, username, password, version)
model_foo_version (id, model_id, userrname, password, version)
It should be:
model_foo (model_id, username, password, version)
model_foo_version (model_id, userrname, password, version)