3 A simple battery of scripts for upgrading Rails app/checking them for required updates. This application should work on Rails 2.x and 3.0, with a focus on upgrading to 3.0.
7 You need to install this plugin first:
9 script/plugin install git://github.com/rails/rails_upgrade.git
11 Then you can run its rake tasks to check your application:
13 # Check your app for required upgrades
14 rake rails:upgrade:check
16 # Backup your likely modified files that might be overwritten by the generator
17 rake rails:upgrade:backup
19 # Generate a new route file
20 rake rails:upgrade:routes
22 # Generate a Gemfile from your config.gem directives
23 rake rails:upgrade:gems
25 # Generate code for a new config/application.rb from your environment.rb
26 rake rails:upgrade:configuration