This (old) question already has a nice, explicit answer, but I thought I might offer an alternative perspective for future visitors.
Let $R$ be a commutative ring. To give an $R$-module structure on an abelian group $M$ is equivalent to giving a ring homomorphism $R \to \mathrm{End}_{\mathbb{Z}}(M)$. This gives another explanation why an abelian group $M$ can be given exactly one $\mathbb{Z}$-module structure: $\mathbb{Z}$ is initial in the category of rings, so there is a unique homomorphism $\mathbb{Z} \to \mathrm{End}_{\mathbb{Z}}(M)$.
Now, let $R$ be a ring, and let $S \subset R$ be a multiplicative subset, and let $i \colon R \to S^{-1}R$ be the canonical localization map. Recall that the universal property of localization says that given a ring morphism $\alpha \colon R \to T$ with $\alpha(S) \subset T^{\times}$, there is a unique map $\beta \colon S^{-1}R \to T$ such that $\beta \circ i = \alpha$.
Note that $\mathbb{Q}$ is the localization of $\mathbb{Z}$ at the multiplicative subset $S = \mathbb{Z} \setminus \{0\}$. Again, since $\mathbb{Z}$ is initial in the category of rings, there is exactly one ring morphism $\mathbb{Z} \to T$ for any ring $T$, so by the universal property of localization, there is at most one ring homomorphism $\mathbb{Q} \to T$, which exists if and only if the image of $\mathbb{Z}$ in $T$ lies in $T^{\times}$. Since $\mathbb{Q}$-module structures on an abelian group $M$ are in bijection with ring morphisms $\mathbb{Q} \to \mathrm{End}_{\mathbb{Z}}(M)$, this shows the desired result.