Merged r10137 from trunk to 2.0-stable (#10320, #10818)
Gemfile: prevent "rake db:migrate RAILS_ENV=test" causes exception on Ruby 1.9.3.
Authored by: tmaruyama 2012-07-31
Parent: [r10137]
Child: [r10139]