Froze rails gems
[depot.git] / vendor / rails / activerecord / test / connections / native_oracle / connection.rb
1 print "Using Oracle\n"
2 require_dependency 'models/course'
3 require 'logger'
4
5 ActiveRecord::Base.logger = Logger.new STDOUT
6 ActiveRecord::Base.logger.level = Logger::WARN
7
8 # Set these to your database connection strings
9 db = ENV['ARUNIT_DB'] || 'activerecord_unittest'
10
11 ActiveRecord::Base.configurations = {
12 'arunit' => {
13 :adapter => 'oracle',
14 :username => 'arunit',
15 :password => 'arunit',
16 :database => db,
17 },
18 'arunit2' => {
19 :adapter => 'oracle',
20 :username => 'arunit2',
21 :password => 'arunit2',
22 :database => db
23 }
24 }
25
26 ActiveRecord::Base.establish_connection 'arunit'
27 Course.establish_connection 'arunit2'