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:
parent
f9ec3e5cc3
commit
ccea4cf331
1 changed files with 1 additions and 1 deletions
|
@ -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|
|
||||
|
|
Loading…
Reference in a new issue