rails/rails — pull request #7951 by Grandrath (2012-10-15 08:01:30+00:00)
Title: Use `Rails.env` instead of `ENV['RAILS_ENV']`

`ENV['RAILS_ENV']` is not defined unless explicitly specified on the
command line when running `rake db:structure:load`. This patch lets
the rake task retrieve the environment from `Rails.env` which defaults
to "development".