Sha256: 2b7761173188d3dfb764a55aad025bd75135565cf61bc0a6fc97fbbbf4b76c7e
Contents?: true
Size: 475 Bytes
Versions: 7
Compression:
Stored size: 475 Bytes
Contents
print "Using native MySQL\n" require 'active_record' 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 locals/database_connections.rb SPEC = CompositePrimaryKeys::ConnectionSpec[:mysql] ActiveRecord::Base.establish_connection(SPEC)
Version data entries
7 entries across 7 versions & 1 rubygems