Migrating from Rails 3.2.12 to Rails 4