An important remark: since the function $f(x) = \begin{cases} 1 & x \in \mathbb{Q} \\ 0 & x \in \mathbb{R} \setminus \mathbb{Q} \end{cases}$ is clearly Lebesgue-integrable (being equal to $0$ almost everywhere), you are probably asking about Riemann integrability. In this case, though, you have a problem: the concept of Riemann integrability is defined only for functions defined on bounded intervals, and $f$ is defined on $\Bbb R$. I believe that what you meant to ask about is the following slightly modified function: $g(x) = \begin{cases} 1 & x \in [a,b] \cap \mathbb{Q} \\ 0 & x \in [a,b] \setminus \mathbb{Q} \end{cases}$. In this case, an answer can be given using Lebesgue's criterion of Riemann integrability: a bounded $f$ is Riemann-integrable on $[a,b]$ if and only if the set of discontinuities of $f$ has Lebesgue measure $0$.
Let $x \in [a,b] \cap \Bbb Q$. Then $f(x)=1$. Pick a sequence of irrational numbers $(x_n)_{n\in\Bbb N}$ with $x_n \to x$. Then $f(x_n)=0 \not\to 1=f(x)$, so $f$ is not continuous in $x$.
Let $x \in [a,b] \setminus \Bbb Q$. Then $f(x)=0$. Pick a sequence of rational numbers $(x_n)_{n\in\Bbb N}$ with $x_n \to x$. Then $f(x_n)=1 \not\to 0=f(x)$, so $f$ is not continuous in $x$.
The above argument shows that $f$ is discontinuous in all the points of $[a,b]$, which is a set of Lebesgue measure $b-a \ne 0$, therefore Lebesgue's criterion tells us that $f$ is not Riemann-integrable on $[a,b]$.