Skip to content

Instantly share code, notes, and snippets.

Created Oct 14, 2010
Embed
What would you like to do?
diff --git a/lib/arjdbc/jdbc/jdbc.rake b/lib/arjdbc/jdbc/jdbc.rake
index b240037..d5dc5ff 100644
--- a/lib/arjdbc/jdbc/jdbc.rake
+++ b/lib/arjdbc/jdbc/jdbc.rake
@@ -118,7 +118,8 @@ namespace :db do
redefine_task :purge => :environment do
abcs = ActiveRecord::Base.configurations
- ActiveRecord::Base.connection.recreate_database(find_database_name(abcs['test']))
+ db = find_database_name(abcs['test'])
+ ActiveRecord::Base.connection.recreate_database(db)
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment