I am reading B. M. Singer’s book Field theory: An analytic approach and he proves on page 131 that no homomorphism $f: \mathbb{Z}\to\mathbb{Q}$ is generated by polynomials over a PID, which is true.