Merged r10137 from trunk to 1.4-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: [r10138]
Child: [r10140]