Sha256: 51bd339b61f75c073db9dd163b544b999a0207c183e3c2f7916ff66775470d16
Contents?: true
Size: 628 Bytes
Versions: 7
Compression:
Stored size: 628 Bytes
Contents
print "Using native Postgresql\n" require 'logger' 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 = {} options['U'] = SPEC['username'] if SPEC['username'] options['p'] = SPEC['password'] if SPEC['password'] options.map { |key, value| "-#{key} #{value}" }.join(" ") end ActiveRecord::Base.logger = Logger.new("debug.log") SPEC = CompositePrimaryKeys::ConnectionSpec[:postgresql] ActiveRecord::Base.establish_connection(SPEC)
Version data entries
7 entries across 7 versions & 1 rubygems