Updating to Rails 2-3-stable

Here are the steps I followed to upgrade our flagship product.

Steps I had to take on the git repos:

verify that rake version is 0.8.4 and rubygems is 1.3.1
rm -rf vendor/rails
gem update rails rack
cd vendor && git clone git://github.com/rails/rails.git
cd rails && grb track 2-3-stable
git checkout 2-3-stable
rm -rf .git
cd ~/
modify environment.rb to user rails 2.3.2
rake rails:update
git add -A

Upgrade issues I ran into:

# check plugins/gems that need to be updated
# mocha
5076 rollbook:master+! % rake test:units
rake aborted!
can't activate mocha (= 0.9.4, runtime), already activated mocha-0.9.5
# move "require 'mocha'" from test/test_helper.rb into config/environments/test.rb
# http://gist.github.com/111060 -- solution: remove "require 'ar-extensions" from config/initializers/.rb
# remove all references to Test::Unit http://groups.google.com/group/rubyonrails-talk/browse_thread/thread/f90ecdba834c2ef8/f204e834e5e0303c?lnk=raot in test dir
# replace Test::Unit w/ActiveRecord or ActionController as appropriate
# replace CGI::Session.generate_unique_id w/ActiveSupport::SecureRandom.hex(16)
# updated hoptoad and shoulda
# add xmlsimple to be required
# updated new_relic agent
# install country_select plugin

Steps to be take on the production server:

# update passenger 2.2.2
# gem update rails rack
Posted Tuesday, May 19th, 2009 under Uncategorized, rails.

Leave a Reply