Skip to content
Browse files

Remove deprecated pg_dump -i flag

Backport of f383552
  • Loading branch information...
pixeltrix committed Nov 4, 2015
1 parent c8b69cd commit cd900f10a7c8bc3c07e4aade98c8c5040512ea31
Showing with 1 addition and 1 deletion.
  1. +1 −1 activerecord/lib/active_record/tasks/postgresql_database_tasks.rb
@@ -51,7 +51,7 @@ def structure_dump(filename)
search_path = search_path.split(",").map{|search_path_part| "--schema=#{Shellwords.escape(search_path_part.strip)}" }.join(" ")

command = "pg_dump -i -s -x -O -f #{Shellwords.escape(filename)} #{search_path} #{Shellwords.escape(configuration['database'])}"
command = "pg_dump -s -x -O -f #{Shellwords.escape(filename)} #{search_path} #{Shellwords.escape(configuration['database'])}"
raise 'Error dumping database' unless Kernel.system(command), "a") { |f| f << "SET search_path TO #{ActiveRecord::Base.connection.schema_search_path};\n\n" }

0 comments on commit cd900f1

Please sign in to comment.
You can’t perform that action at this time.