Sha256: 290bf4ead33d6b5de4471845122e3fd4a7db2fd24467bfabd86099565f49add3
Contents?: true
Size: 467 Bytes
Versions: 2
Compression:
Stored size: 467 Bytes
Contents
require 'test_helper' require 'db/mysql_config' require 'jdbc/mysql' # driver not loaded for plain JDBC Jdbc::MySQL.load_driver JDBC_CONFIG = { :adapter => 'jdbc', :driver => 'com.mysql.jdbc.Driver', :username => MYSQL_CONFIG[:username], :password => MYSQL_CONFIG[:password], } JDBC_CONFIG[:url] = "jdbc:mysql://" << "#{MYSQL_CONFIG[:host]}:#{MYSQL_CONFIG[:port] || 3306}/#{MYSQL_CONFIG[:database]}" ActiveRecord::Base.establish_connection(JDBC_CONFIG)
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
activerecord-jdbc-adapter-1.3.0.beta2 | test/db/jdbc.rb |
activerecord-jdbc-adapter-1.3.0.beta1 | test/db/jdbc.rb |