aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib
diff options
context:
space:
mode:
authorRafael França <rafaelmfranca@gmail.com>2017-08-11 17:40:03 -0400
committerGitHub <noreply@github.com>2017-08-11 17:40:03 -0400
commitfb849b7b7e0cb843f3211d083ff2eff2cbba3f7d (patch)
treede67f45ace69cb0be3ae79c44610c12673c521db /activerecord/lib
parent58c5981721b7da55bcb56b463355949be02fd8d6 (diff)
parentad41a27b8c29219350d0d5d39593e14cc8a04b71 (diff)
downloadrails-fb849b7b7e0cb843f3211d083ff2eff2cbba3f7d.tar.gz
rails-fb849b7b7e0cb843f3211d083ff2eff2cbba3f7d.tar.bz2
rails-fb849b7b7e0cb843f3211d083ff2eff2cbba3f7d.zip
Merge pull request #30159 from allcentury/dump-temp-file-permissions
Use copy to preserve file permissions
Diffstat (limited to 'activerecord/lib')
-rw-r--r--activerecord/lib/active_record/tasks/postgresql_database_tasks.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/lib/active_record/tasks/postgresql_database_tasks.rb b/activerecord/lib/active_record/tasks/postgresql_database_tasks.rb
index 955b1d4e94..5681ccdd23 100644
--- a/activerecord/lib/active_record/tasks/postgresql_database_tasks.rb
+++ b/activerecord/lib/active_record/tasks/postgresql_database_tasks.rb
@@ -136,7 +136,7 @@ module ActiveRecord
ensure
tempfile.close
end
- FileUtils.mv(tempfile.path, filename)
+ FileUtils.cp(tempfile.path, filename)
end
end
end