Sha256: 2109b19990f091d53d607cb8ced50cca2d697174797117e420023e43b5ff74c2
Contents?: true
Size: 452 Bytes
Versions: 58
Compression:
Stored size: 452 Bytes
Contents
print "Using native Postgresql\n" def connection_string options = Hash.new options['U'] = SPEC['username'] if SPEC['username'] options['h'] = SPEC['host'] if SPEC['host'] options['p'] = SPEC['port'] if SPEC['port'] options.map { |key, value| "-#{key} #{value}" }.join(" ") end # Adapter config setup in text/connections/databases.yml SPEC = CompositePrimaryKeys::ConnectionSpec['postgresql'] ActiveRecord::Base.establish_connection(SPEC)
Version data entries
58 entries across 58 versions & 1 rubygems