Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Support JDBC PostgreSQL adapter under JRuby #1603

Closed
wants to merge 1 commit into from

3 participants

@francois

When trying to run rake test under jruby, Rake fails with "unknown task jdbcpostgresql" during db:test:purge. This simple fix works for me, and is similar to how the mysql task is implemented.

@AndreasWurm

already done..
c810281

@spastorino spastorino closed this
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Jun 9, 2011
  1. @francois
This page is out of date. Refresh to see the latest.
Showing with 1 addition and 1 deletion.
  1. +1 −1  activerecord/lib/active_record/railties/databases.rake
View
2  activerecord/lib/active_record/railties/databases.rake
@@ -430,7 +430,7 @@ namespace :db do
when /mysql/
ActiveRecord::Base.establish_connection(:test)
ActiveRecord::Base.connection.recreate_database(abcs["test"]["database"], abcs["test"])
- when "postgresql"
+ when /postgresql/
ActiveRecord::Base.clear_active_connections!
drop_database(abcs['test'])
create_database(abcs['test'])
Something went wrong with that request. Please try again.