Sha256: 901bd9b6a5ffe53165eb11082a6e5f29a1b3e10583d53557e1d9e5110f7e2ded
Contents?: true
Size: 516 Bytes
Versions: 3
Compression:
Stored size: 516 Bytes
Contents
print "Using native MySQL\n" require File.join(PROJECT_ROOT, 'lib', 'composite_primary_keys') 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
3 entries across 3 versions & 1 rubygems