aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord
diff options
context:
space:
mode:
authorCarlos Antonio da Silva <carlosantoniodasilva@gmail.com>2012-10-20 07:18:40 -0700
committerCarlos Antonio da Silva <carlosantoniodasilva@gmail.com>2012-10-20 07:18:40 -0700
commit247127193794fb239e23b544297accf63b7ad4fc (patch)
tree55ad5e0eba0915209c517efa3252cefcc59b39d7 /activerecord
parentb04ec2764f62d5734c57959e2f00f9ef4345d52e (diff)
parentf4ddc496da0b7c1907a3345343918d7b9b39f5c5 (diff)
downloadrails-247127193794fb239e23b544297accf63b7ad4fc.tar.gz
rails-247127193794fb239e23b544297accf63b7ad4fc.tar.bz2
rails-247127193794fb239e23b544297accf63b7ad4fc.zip
Merge pull request #7986 from Grandrath/patch-2
Fix behavior of `rake db:structure:load` for 3.2.8
Diffstat (limited to 'activerecord')
-rw-r--r--activerecord/lib/active_record/railties/databases.rake2
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/lib/active_record/railties/databases.rake b/activerecord/lib/active_record/railties/databases.rake
index 6d43b232ad..987bb558e5 100644
--- a/activerecord/lib/active_record/railties/databases.rake
+++ b/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")