aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib/active_record/tasks/postgresql_database_tasks.rb
diff options
context:
space:
mode:
authorJason Weathered <jason@jasoncodes.com>2015-03-25 09:21:16 +1000
committerJason Weathered <jason@jasoncodes.com>2015-03-25 09:21:16 +1000
commit78fb8bb7e168eefd876f1133636d5138b18ba52c (patch)
tree7fe5c4ef3e8306f4effc9da45c29da1e108a5e80 /activerecord/lib/active_record/tasks/postgresql_database_tasks.rb
parente5fda36d8a0e9269141e113a70fa381842952f99 (diff)
downloadrails-78fb8bb7e168eefd876f1133636d5138b18ba52c.tar.gz
rails-78fb8bb7e168eefd876f1133636d5138b18ba52c.tar.bz2
rails-78fb8bb7e168eefd876f1133636d5138b18ba52c.zip
Avoid loading user's psqlrc when loading test structure
Diffstat (limited to 'activerecord/lib/active_record/tasks/postgresql_database_tasks.rb')
-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 435708a421..d7da95c8a9 100644
--- a/activerecord/lib/active_record/tasks/postgresql_database_tasks.rb
+++ b/activerecord/lib/active_record/tasks/postgresql_database_tasks.rb
@@ -67,7 +67,7 @@ module ActiveRecord
def structure_load(filename)
set_psql_env
- Kernel.system("psql -q -f #{Shellwords.escape(filename)} #{configuration['database']}")
+ Kernel.system("psql -X -q -f #{Shellwords.escape(filename)} #{configuration['database']}")
end
private