better support for has_many in generator #29