ActiveRecord as a separated trait to be added to companion objects