Sha256: 46b32cd7c1cb01b358f60acdde9759538f9085a245c10d1444f2957db489429c
Contents?: true
Size: 510 Bytes
Versions: 7
Compression:
Stored size: 510 Bytes
Contents
print "Using native Postgresql\n" require 'active_record' require File.join(PROJECT_ROOT, 'test', 'connections', 'connection_spec') require File.join(PROJECT_ROOT, 'lib', 'composite_primary_keys', 'connection_adapters', 'postgresql_adapter') def connection_string options = Hash.new options['U'] = SPEC['username'] if SPEC['username'] options.map { |key, value| "-#{key} #{value}" }.join(" ") end SPEC = CompositePrimaryKeys::ConnectionSpec[:postgresql] ActiveRecord::Base.establish_connection(SPEC)
Version data entries
7 entries across 7 versions & 1 rubygems