mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Merge pull request #16439 from voxxit/patch-1
Using delegated connection method
This commit is contained in:
commit
7bb5a8f590
1 changed files with 1 additions and 1 deletions
|
@ -54,7 +54,7 @@ module ActiveRecord
|
|||
command = "pg_dump -i -s -x -O -f #{Shellwords.escape(filename)} #{search_path} #{Shellwords.escape(configuration['database'])}"
|
||||
raise 'Error dumping database' unless Kernel.system(command)
|
||||
|
||||
File.open(filename, "a") { |f| f << "SET search_path TO #{ActiveRecord::Base.connection.schema_search_path};\n\n" }
|
||||
File.open(filename, "a") { |f| f << "SET search_path TO #{connection.schema_search_path};\n\n" }
|
||||
end
|
||||
|
||||
def structure_load(filename)
|
||||
|
|
Loading…
Reference in a new issue