Migrates from Rails 3.2 to Rails 4.0