aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib/active_record/tasks
diff options
context:
space:
mode:
authorJ Smith <dark.panda@gmail.com>2018-09-17 12:13:42 -0300
committerJ Smith <dark.panda@gmail.com>2018-09-17 12:13:42 -0300
commit69e0e0acf9a286a41f1adaae8e3e04b3a34101a1 (patch)
tree688de14fa12a84c8b9372e9e67873104710ac9cc /activerecord/lib/active_record/tasks
parent11581afc01927565d57dd0e0156e983f92f8c2e0 (diff)
downloadrails-69e0e0acf9a286a41f1adaae8e3e04b3a34101a1.tar.gz
rails-69e0e0acf9a286a41f1adaae8e3e04b3a34101a1.tar.bz2
rails-69e0e0acf9a286a41f1adaae8e3e04b3a34101a1.zip
Ignore psqlrc files when executing psql commands
psqlrc files can affect the execution of commands in ways that can hold up execution by blocking or otherwise cause unexpected side effects and should best be ignored when using psql programmatically.
Diffstat (limited to 'activerecord/lib/active_record/tasks')
-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 533e6953a4..029f763158 100644
--- a/activerecord/lib/active_record/tasks/postgresql_database_tasks.rb
+++ b/activerecord/lib/active_record/tasks/postgresql_database_tasks.rb
@@ -61,7 +61,7 @@ module ActiveRecord
ActiveRecord::Base.dump_schemas
end
- args = ["-s", "-x", "-O", "-f", filename]
+ args = ["-s", "-X", "-x", "-O", "-f", filename]
args.concat(Array(extra_flags)) if extra_flags
unless search_path.blank?
args += search_path.split(",").map do |part|