aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib
diff options
context:
space:
mode:
authorJ Smith <dark.panda@gmail.com>2018-09-27 01:41:14 -0300
committerJ Smith <dark.panda@gmail.com>2018-09-27 10:01:24 -0300
commitdbc0da42d67262855a2b911631821933ec09da69 (patch)
treef9a17e550f724f74e9fb2e40d86e5c889e426fa1 /activerecord/lib
parentff1b4eb35ecac420d71c552402e1192551413a5f (diff)
downloadrails-dbc0da42d67262855a2b911631821933ec09da69.tar.gz
rails-dbc0da42d67262855a2b911631821933ec09da69.tar.bz2
rails-dbc0da42d67262855a2b911631821933ec09da69.zip
Use -X when loading structure.sql via psql
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 6d7dc05847..d3c85b161e 100644
--- a/activerecord/lib/active_record/tasks/postgresql_database_tasks.rb
+++ b/activerecord/lib/active_record/tasks/postgresql_database_tasks.rb
@@ -82,7 +82,7 @@ module ActiveRecord
def structure_load(filename, extra_flags)
set_psql_env
- args = ["-v", ON_ERROR_STOP_1, "-q", "-f", filename]
+ args = ["-v", ON_ERROR_STOP_1, "-q", "-X", "-f", filename]
args.concat(Array(extra_flags)) if extra_flags
args << configuration["database"]
run_cmd("psql", args, "loading")