Noting that $\frac{dy}{dt} < 0$ for $-2 < y < 1$, you're on the right track. Note that outside of this range, $\frac{dy}{dt}$. With a gradient that changes sign upon crossing $y=-2$ and $y=1$ suggests that the discontinuities of $\frac{dy}{dt}$ may be points where the gradient becomes infinite, i.e. the slope is vertical. This, along with the fact that a plot of $y$ against $t$ must go through the origin according to the boundary condition, gives enough information to produce a rough sketch, such as:

The assumption that $y(t)$ is continuous is made. To confirm this sketch, it would be best to solve the differential equation. Note the differential equation can be rewritten as:
$$\int{(y-1)(y+2)\,dy}=\int{t\, dt}$$
$$\therefore \frac{1}{3}y^3 + \frac{1}{2}y^2 -2y = t + const.$$
Applying the boundary condition, it can be seen that $t=t(y)$ is a cubic:
$$t=\frac{1}{3}y^3 + \frac{1}{2}y^2 -2y$$
And so $y=y(t)$ will be a cubic mirrored about the line (y=t), and its plot will look as such (The horizontal axis should be labelled "$t$" and not "$x$"):

This corresponds to the sketch made earlier.