aboutsummaryrefslogtreecommitdiffstats
path: root/guides
diff options
context:
space:
mode:
authorYves Senn <yves.senn@gmail.com>2014-06-24 09:57:47 +0200
committerYves Senn <yves.senn@gmail.com>2014-06-24 09:57:47 +0200
commitb0594a773d784354b3bdd0fb3d8ec5eb5e27d2b7 (patch)
tree3ad85211d728558feba3d8c670043daf2f5eabad /guides
parent72c1abcc2f04fa2b0cdf89fd6093da544274c465 (diff)
parent469264ff5f2c413da4169986bc846b8e73d4d187 (diff)
downloadrails-b0594a773d784354b3bdd0fb3d8ec5eb5e27d2b7.tar.gz
rails-b0594a773d784354b3bdd0fb3d8ec5eb5e27d2b7.tar.bz2
rails-b0594a773d784354b3bdd0fb3d8ec5eb5e27d2b7.zip
Merge pull request #15810 from maurogeorge/guides-rails-update
Add rails:update to the upgrading guides
Diffstat (limited to 'guides')
-rw-r--r--guides/source/upgrading_ruby_on_rails.md23
1 files changed, 23 insertions, 0 deletions
diff --git a/guides/source/upgrading_ruby_on_rails.md b/guides/source/upgrading_ruby_on_rails.md
index 1876959e03..d1d24eac66 100644
--- a/guides/source/upgrading_ruby_on_rails.md
+++ b/guides/source/upgrading_ruby_on_rails.md
@@ -22,6 +22,29 @@ Rails generally stays close to the latest released Ruby version when it's releas
TIP: Ruby 1.8.7 p248 and p249 have marshaling bugs that crash Rails. Ruby Enterprise Edition has these fixed since the release of 1.8.7-2010.02. On the 1.9 front, Ruby 1.9.1 is not usable because it outright segfaults, so if you want to use 1.9.x, jump straight to 1.9.3 for smooth sailing.
+### The Rake Task
+
+Rails provides the `rails:update` rake task. After updating the Rails version
+in the Gemfile, run this rake task.
+This will help you with the creation of new files and changes of old files in a
+interactive session.
+
+```bash
+$ rake rails:update
+ identical config/boot.rb
+ exist config
+ conflict config/routes.rb
+Overwrite /myapp/config/routes.rb? (enter "h" for help) [Ynaqdh]
+ force config/routes.rb
+ conflict config/application.rb
+Overwrite /myapp/config/application.rb? (enter "h" for help) [Ynaqdh]
+ force config/application.rb
+ conflict config/environment.rb
+...
+```
+
+Don't forget to review the difference, to see if there were any unexpected changes.
+
Upgrading from Rails 4.1 to Rails 4.2
-------------------------------------