3282d26922ea988d0f2638f18941e725b37fb554
[depot.git] / connection.rb
1 print "Using native Sybase Open Client\n"
2 require_dependency 'models/course'
3 require 'logger'
4
5 ActiveRecord::Base.logger = Logger.new("debug.log")
6
7 ActiveRecord::Base.configurations = {
8 'arunit' => {
9 :adapter => 'sybase',
10 :host => 'database_ASE',
11 :username => 'sa',
12 :database => 'activerecord_unittest'
13 },
14 'arunit2' => {
15 :adapter => 'sybase',
16 :host => 'database_ASE',
17 :username => 'sa',
18 :database => 'activerecord_unittest2'
19 }
20 }
21
22 ActiveRecord::Base.establish_connection 'arunit'
23 Course.establish_connection 'arunit2'