diff options
author | Andrew White <pixeltrix@users.noreply.github.com> | 2018-03-30 20:23:07 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-03-30 20:23:07 +0100 |
commit | 798e7e9679662683896bfc8d64abdc13c832f261 (patch) | |
tree | 9ae039bf13d44bf1086c0aade225bf0a66c2084e /activerecord/lib/active_record | |
parent | c680080967c8941e8a7a6eb44ee3d9e697dd3c91 (diff) | |
parent | ccea4cf331e757a222770c4fd0a137b3cc9558b7 (diff) | |
download | rails-798e7e9679662683896bfc8d64abdc13c832f261.tar.gz rails-798e7e9679662683896bfc8d64abdc13c832f261.tar.bz2 rails-798e7e9679662683896bfc8d64abdc13c832f261.zip |
Merge pull request #32366 from utilum/use_current_config
Use current_config in structure_dump
Diffstat (limited to 'activerecord/lib/active_record')
-rw-r--r-- | activerecord/lib/active_record/railties/databases.rake | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/lib/active_record/railties/databases.rake b/activerecord/lib/active_record/railties/databases.rake index 76dbcafffb..fe557b5d2b 100644 --- a/activerecord/lib/active_record/railties/databases.rake +++ b/activerecord/lib/active_record/railties/databases.rake @@ -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| |