Sha256: 5ca00b4cb805e7508fe8ab760da14f9310e37622164819289e2525db4bb12f5d
Contents?: true
Size: 342 Bytes
Versions: 12
Compression:
Stored size: 342 Bytes
Contents
module ActiveRecord class Base class << self def h2_connection(config) config[:url] ||= "jdbc:h2:#{config[:database]}" config[:driver] ||= "org.h2.Driver" config[:adapter_spec] = ::ArJdbc::H2 embedded_driver(config) end alias_method :jdbch2_connection, :h2_connection end end end
Version data entries
12 entries across 12 versions & 4 rubygems