Bump rails to 3.1.12