Sha256: fcf056f497ec99086181f5b00737b8141bcbbe0895656f1bba659c1a035f6e35

Contents?: true

Size: 391 Bytes

Versions: 5

Compression:

Stored size: 391 Bytes

Contents

require 'jdbc_common'
require 'db/mysql_config'

require 'jdbc/mysql' # driver not loaded for plain JDBC
Jdbc::MySQL.load_driver

ActiveRecord::Base.establish_connection({
  :adapter => 'jdbc',
  :driver => 'com.mysql.jdbc.Driver',
  :url => "jdbc:mysql://#{MYSQL_CONFIG[:host]}/#{MYSQL_CONFIG[:database]}",
  :username => MYSQL_CONFIG[:username],
  :password => MYSQL_CONFIG[:password],
})

Version data entries

5 entries across 4 versions & 1 rubygems

Version Path
activerecord-jdbc-adapter-1.2.9.1 test/db/jdbc_mysql.rb
activerecord-jdbc-adapter-1.2.9 test/db/jdbc_mysql.rb
activerecord-jdbc-adapter-1.2.8 test/db/jdbc_mysql.rb
activerecord-jdbc-adapter-1.2.5 test/db/jdbc.rb
activerecord-jdbc-adapter-1.2.5 test/db/jdbc_mysql.rb