Tighten Rails dependency on 1.2.x series.

Since it breaks with 4.0.6.