aboutsummaryrefslogtreecommitdiffstats
path: root/spec/support/connections/oracle_connection.rb
blob: c28602b1341ee68c766373c97406bea1870f3488 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
puts "Using native Oracle"
require "active_record"
require 'logger'

ENV['ADAPTER'] = 'oracle'

# Prepend oracle_enhanced local development directory in front of load path
$LOAD_PATH.unshift "#{File.dirname(__FILE__)}/../../../oracle-enhanced/lib"

ActiveRecord::Base.configurations = {
  'unit' => {
    :adapter  => 'oracle_enhanced',
    :username => 'arel_unit',
    :password => 'arel_unit',
    :database => 'orcl',
  }
}