Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Demonstrates that version 1.2.5 of the jdbcpostgresql adapter does not load properly.
adapter_version = ARGV[0] || '1.2.5'
require 'rubygems'
require 'active_record'
gem 'activerecord-jdbcpostgresql-adapter', adapter_version
require 'active_record/connection_adapters/jdbcpostgresql_adapter'
if ActiveRecord::Base.respond_to?('jdbcpostgresql_connection')
puts "jdbcpostgresql_connection method available in #{adapter_version}"
exit(0)
else
puts "FAILURE: jdbcpostgresql_connection method not available in #{adapter_version}"
exit(1)
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment