You seem to have the right idea in assuming a contradiction, that is, $r^{2}=2$ is rational where $r \in \mathbb{Q}$ . But then you could write it as $r=\frac{m}{n}$ for some integers $m,n \in \mathbb{Z}$. Then assume that $m$ and $n$ have no common factor, and if they did we could divide it out.
So we have $2 = r^{2} = \frac{m^{2}}{n^{2}}$. Therefore, $m^{2}=2n^{2}$, so $m^{2}$ is even. We claim that $m$ is even; if not $m$ is odd.
Let $m = 2k+1$ for some $k \in \mathbb{Z}$. Then $$m^{2} = (2k+1)^{2}$$ $$m^{2}= (2k)^{2} + 2(2k) (1) + 1$$ $$m^{2}=2k(2k+1)+1$$.
So $m^{2}$ is odd, and it is a contradiction. Therefore, $m$ is even, so $m=2p$ for some $p \in \mathbb{Z}$.
Similarly try to show that $n^{2}$ is even, which implies that $n$ is even.
Then $n=2q$ for some $q \in \mathbb{Z}$. So $m$ and $n$ have a common factor (can you guess what that common factor is?), which is a contradiction.
Therefore, there is no rational number $r$ such that $r^{2}=2$. In other words, $\sqrt{2}$ is irrational.