provide autogeneration of polymorphic_on field