diff options
author | Alexey Gaziev <alex.gaziev@gmail.com> | 2011-06-20 17:28:59 +0400 |
---|---|---|
committer | Alexey Gaziev <alex.gaziev@gmail.com> | 2011-06-20 17:28:59 +0400 |
commit | 93f488e7fa81f6cc18e6b158073979c0fd0c3c3d (patch) | |
tree | 76667a366d1f83cfbd8886b628138249a2301fe3 | |
parent | 87329ef67f9502aca5a9331610dc97b795cfda94 (diff) | |
download | rails-93f488e7fa81f6cc18e6b158073979c0fd0c3c3d.tar.gz rails-93f488e7fa81f6cc18e6b158073979c0fd0c3c3d.tar.bz2 rails-93f488e7fa81f6cc18e6b158073979c0fd0c3c3d.zip |
Removed shadowing variable warning in activerecord railties
-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 |