migrating minor rails versions

2020-03-11 07:21发布

问题:

I started a new rails project a few weeks ago with 3.2.3. Today I noticed that rails 3.2.4 and 3.2.5 have been released. I don't want to be behind already, so what's the best way to update my app to 3.2.5?

回答1:

  • Read the release notes.
  • Edit your Gemfile and run bundle update.
  • Update your .rvmrc file. (Optional)
  • Run your tests.
  • Repeat as necessary.

One caveat is that if you do not explicitly specify gem versions in your Gemfile you may update a gem and introduce breaking changes; I have been bitten by this because of my Gemfile laziness.