diff options
author | Nic Benders <nic.benders@gmail.com> | 2010-09-26 11:25:10 -0700 |
---|---|---|
committer | Santiago Pastorino <santiago@wyeworks.com> | 2010-09-26 20:45:30 -0300 |
commit | f8c7f4cc5370b98ba93faeab49dcf9c37656920e (patch) | |
tree | 195f5599dc810ba0fc8ef99c8e795de9319d8613 /activerecord | |
parent | d6f7b7d35337b87cc1c419e47fae52bbfc3f371e (diff) | |
download | rails-f8c7f4cc5370b98ba93faeab49dcf9c37656920e.tar.gz rails-f8c7f4cc5370b98ba93faeab49dcf9c37656920e.tar.bz2 rails-f8c7f4cc5370b98ba93faeab49dcf9c37656920e.zip |
db:structure:dump should list current Rails.env adapter in errors, not always the test adapter
[#5710 state:committed]
Signed-off-by: Santiago Pastorino <santiago@wyeworks.com>
Diffstat (limited to 'activerecord')
-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 12bfe3c738..389a5d5884 100644 --- a/activerecord/lib/active_record/railties/databases.rake +++ b/activerecord/lib/active_record/railties/databases.rake @@ -390,7 +390,7 @@ namespace :db do db_string = firebird_db_string(abcs[Rails.env]) sh "isql -a #{db_string} > #{Rails.root}/db/#{Rails.env}_structure.sql" else - raise "Task not supported by '#{abcs["test"]["adapter"]}'" + raise "Task not supported by '#{abcs[Rails.env]["adapter"]}'" end if ActiveRecord::Base.connection.supports_migrations? |