Sha256: e8d1b59a2b7fffb5ada1e46b2c7db515ebc91d3e102e9f50275014523bc3c47d
Contents?: true
Size: 518 Bytes
Versions: 4
Compression:
Stored size: 518 Bytes
Contents
print "Using native MySQL\n" def connection_string options = {} options['u'] = SPEC['username'] if SPEC['username'] options['p'] = SPEC['password'] if SPEC['password'] options['S'] = SPEC['sock'] if SPEC['sock'] options.map { |key, value| "-#{key}#{value}" }.join(" ") end # Adapter config setup in test/connections/databases.yml SPEC = CompositePrimaryKeys::ConnectionSpec['mysql'] def establish_connection ActiveRecord::Base.establish_connection(SPEC) end establish_connection
Version data entries
4 entries across 4 versions & 1 rubygems