Add has_one association to entity