Migrates to Rails 3.2