aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord
diff options
context:
space:
mode:
authorAlexey Gaziev <alex.gaziev@gmail.com>2011-06-20 17:28:59 +0400
committerAlexey Gaziev <alex.gaziev@gmail.com>2011-06-20 17:28:59 +0400
commit93f488e7fa81f6cc18e6b158073979c0fd0c3c3d (patch)
tree76667a366d1f83cfbd8886b628138249a2301fe3 /activerecord
parent87329ef67f9502aca5a9331610dc97b795cfda94 (diff)
downloadrails-93f488e7fa81f6cc18e6b158073979c0fd0c3c3d.tar.gz
rails-93f488e7fa81f6cc18e6b158073979c0fd0c3c3d.tar.bz2
rails-93f488e7fa81f6cc18e6b158073979c0fd0c3c3d.zip
Removed shadowing variable warning in activerecord railties
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 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