diff options
author | José Valim <jose.valim@gmail.com> | 2011-06-20 06:48:17 -0700 |
---|---|---|
committer | José Valim <jose.valim@gmail.com> | 2011-06-20 06:48:17 -0700 |
commit | 89b3293a54f14d4787d79ab275a6492964c7e3e1 (patch) | |
tree | 83b806fff3612545092682767b95d90da342816f /activerecord | |
parent | b7c8e0bb0c70070d6fa28e3da1566e0ffaf27704 (diff) | |
parent | 93f488e7fa81f6cc18e6b158073979c0fd0c3c3d (diff) | |
download | rails-89b3293a54f14d4787d79ab275a6492964c7e3e1.tar.gz rails-89b3293a54f14d4787d79ab275a6492964c7e3e1.tar.bz2 rails-89b3293a54f14d4787d79ab275a6492964c7e3e1.zip |
Merge pull request #1784 from gazay/3-1-stable-shadowing-variables
Removing shadowing outer local variables warnings
Diffstat (limited to 'activerecord')
-rw-r--r-- | activerecord/lib/active_record/railties/databases.rake | 2 |
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 6ef24a4eaf..83909b0766 100644 --- a/activerecord/lib/active_record/railties/databases.rake +++ b/activerecord/lib/active_record/railties/databases.rake @@ -369,7 +369,7 @@ db_namespace = namespace :db do ENV['PGPASSWORD'] = abcs[Rails.env]['password'].to_s if abcs[Rails.env]['password'] search_path = abcs[Rails.env]['schema_search_path'] unless search_path.blank? - search_path = search_path.split(",").map{|search_path| "--schema=#{search_path.strip}" }.join(" ") + search_path = search_path.split(",").map{|search_path_part| "--schema=#{search_path_part.strip}" }.join(" ") end `pg_dump -i -U "#{abcs[Rails.env]['username']}" -s -x -O -f db/#{Rails.env}_structure.sql #{search_path} #{abcs[Rails.env]['database']}` raise 'Error dumping database' if $?.exitstatus == 1 |