"Hack" solution:
- Create a new Rails 4 project:
rails new MyTestRails4Project
- Copy the bin folder that is within the MyTestRails4Project
- Paste bin folder inside the project that has just been migrated to Rails 4
Update
If the first solution doesn't work, as RiPuk suggested:
Run the rake task: rake rails:update