diff options
author | Rafael França <rafaelmfranca@gmail.com> | 2017-08-11 17:40:03 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-08-11 17:40:03 -0400 |
commit | fb849b7b7e0cb843f3211d083ff2eff2cbba3f7d (patch) | |
tree | de67f45ace69cb0be3ae79c44610c12673c521db /activerecord | |
parent | 58c5981721b7da55bcb56b463355949be02fd8d6 (diff) | |
parent | ad41a27b8c29219350d0d5d39593e14cc8a04b71 (diff) | |
download | rails-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')
-rw-r--r-- | activerecord/lib/active_record/tasks/postgresql_database_tasks.rb | 2 |
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 |