Skip to content

Commit

Permalink
db:structure:dump should list current Rails.env adapter in errors, no…
Browse files Browse the repository at this point in the history
…t always the test adapter

[#5710 state:committed]

Signed-off-by: Santiago Pastorino <santiago@wyeworks.com>
  • Loading branch information
benders authored and spastorino committed Sep 26, 2010
1 parent d6f7b7d commit f8c7f4c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion activerecord/lib/active_record/railties/databases.rake
Expand Up @@ -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?
Expand Down

0 comments on commit f8c7f4c

Please sign in to comment.