Sha256: f4a59a4decfcae54e19c545e9a18a431523cbe7fae97813d4d5082141091a5b6
Contents?: true
Size: 745 Bytes
Versions: 12
Compression:
Stored size: 745 Bytes
Contents
print "Using native Oracle Enhanced\n" require File.join(PROJECT_ROOT, 'lib', 'composite_primary_keys') def connection_string "#{SPEC['username']}/#{SPEC['password']}@//#{SPEC['host']}:#{SPEC['port']}/#{SPEC['database']}" end # Adapter config setup in locals/database_connections.rb SPEC = CompositePrimaryKeys::ConnectionSpec[:oracle_enhanced] ActiveRecord::Base.establish_connection(SPEC) # Change default options for Oracle Enhanced adapter ActiveRecord::ConnectionAdapters::OracleEnhancedAdapter.emulate_dates_by_column_name = true # Change NLS_DATE_FORMAT to non-default format to verify that all tests should pass ActiveRecord::Base.connection.execute %q{alter session set nls_date_format = 'DD-MON-YYYY HH24:MI:SS'}
Version data entries
12 entries across 12 versions & 1 rubygems