Permalink
Browse files

Merge pull request #7986 from Grandrath/patch-2

Fix behavior of `rake db:structure:load` for 3.2.8
  • Loading branch information...
2 parents b04ec27 + f4ddc49 commit 247127193794fb239e23b544297accf63b7ad4fc @carlosantoniodasilva carlosantoniodasilva committed Oct 20, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 activerecord/lib/active_record/railties/databases.rake
@@ -412,7 +412,7 @@ db_namespace = namespace :db do
# desc "Recreate the databases from the structure.sql file"
task :load => [:environment, :load_config] do
- env = ENV['RAILS_ENV'] || 'test'
+ env = Rails.env
abcs = ActiveRecord::Base.configurations
filename = ENV['DB_STRUCTURE'] || File.join(Rails.root, "db", "structure.sql")

0 comments on commit 2471271

Please sign in to comment.