Fix behavior of `rake db:structure:load` for 3.2.8 #7986

merged 1 commit into from Oct 20, 2012


None yet

2 participants


This patch fixes issue rails/rails#7951 for 3.2.8. I created a blank app and can confirm that this change restores the desired behavior to rake db:structure:load.

(Sorry for the messed up pull request earlier)

@Grandrath Grandrath Use `Rails.env` instead of `ENV['RAILS_ENV']`; #7951
`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".
@carlosantoniodasilva carlosantoniodasilva merged commit 2471271 into rails:3-2-stable Oct 20, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment