1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

Use current_config in structure_dump

This looks like a typo from 0f0aa6a275
This commit is contained in:
utilum 2018-03-27 14:26:48 +02:00
parent f9ec3e5cc3
commit ccea4cf331

View file

@ -318,7 +318,7 @@ db_namespace = namespace :db do
ActiveRecord::Base.establish_connection(config)
filename = ActiveRecord::Tasks::DatabaseTasks.dump_filename(spec_name, :sql)
current_config = ActiveRecord::Tasks::DatabaseTasks.current_config
ActiveRecord::Tasks::DatabaseTasks.structure_dump(config, filename)
ActiveRecord::Tasks::DatabaseTasks.structure_dump(current_config, filename)
if ActiveRecord::SchemaMigration.table_exists?
File.open(filename, "a") do |f|