Let $I$ be an ideal of $\mathbb{Z}$ and $i: I\rightarrow \mathbb{Z}$ be the canonical injection.
To show that $\mathbb{Q } $ is a $\mathbb{Z}$-flat module, consider the $\mathbb{Z}$-morphism
$$ 1\otimes i : \mathbb{Q}\otimes_{\mathbb{Z}}I\rightarrow \mathbb{Q}\otimes_{\mathbb{Z}}\mathbb{Z}. $$
We know that $$ \mathbb{Q}\otimes_{\mathbb{Z}}I \cong_{\mathbb{Z}} \mathbb{Q} $$ $$ \mathbb{Q}\otimes_{\mathbb{Z}}\mathbb{Z}\cong_{\mathbb{Z}}\mathbb{Q} $$
But how from this result can I show that $1\otimes i $ is injective?
Hint : You have isomorphisms $\mathbb Q\otimes I \cong \mathbb Q$ and $\mathbb Q\otimes \mathbb Z \cong \mathbb Q$ : what does the map $1\otimes i$ look like as a map $\mathbb{Q\to Q}$ ?
That is, what is the map $\mathbb{Q\to Q}$ that makes the following diagram commute :
$\require{AMScd}\begin{CD} \mathbb Q\otimes I @>1\otimes i>> \mathbb{Q\otimes Z }\\ @VVV @VVV \\ \mathbb Q @>?>> \mathbb Q\end{CD}$
where the vertical maps are your isomorphisms ? For that you'll have to explicit the isomorphisms.