Rails 3.1.12 upgrade