Skip to content

Instantly share code, notes, and snippets.

Created October 14, 2010 18:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anonymous/626746 to your computer and use it in GitHub Desktop.
Save anonymous/626746 to your computer and use it in GitHub Desktop.
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