Changeset 7952
- Timestamp:
- 10/17/07 00:06:31 (1 year ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
adapters/sqlserver/test/connections/native_sqlserver_odbc/connection.rb
r7939 r7952 24 24 ActiveRecord::Base.establish_connection 'arunit' 25 25 Course.establish_connection 'arunit2' 26 print "Using native SQLServer via ODBC\n"27 require_dependency 'fixtures/course'28 require 'logger'29 30 ActiveRecord::Base.logger = Logger.new("debug.log")31 32 ActiveRecord::Base.configurations = {33 'arunit' => {34 :adapter => 'sqlserver',35 :mode => 'ODBC',36 :host => 'localhost',37 :username => 'rails',38 :dsn => 'activerecord_unittest'39 },40 'arunit2' => {41 :adapter => 'sqlserver',42 :mode => 'ODBC',43 :host => 'localhost',44 :username => 'rails',45 :dsn => 'activerecord_unittest2'46 }47 }48 49 ActiveRecord::Base.establish_connection 'arunit'50 Course.establish_connection 'arunit2'adapters/sqlserver/test/connections/native_sqlserver/connection.rb
r7939 r7952 22 22 ActiveRecord::Base.establish_connection 'arunit' 23 23 Course.establish_connection 'arunit2' 24 print "Using native SQLServer\n"25 require_dependency 'fixtures/course'26 require 'logger'27 28 ActiveRecord::Base.logger = Logger.new("debug.log")29 30 ActiveRecord::Base.configurations = {31 'arunit' => {32 :adapter => 'sqlserver',33 :host => 'localhost',34 :username => 'rails',35 :database => 'activerecord_unittest'36 },37 'arunit2' => {38 :adapter => 'sqlserver',39 :host => 'localhost',40 :username => 'rails',41 :database => 'activerecord_unittest2'42 }43 }44 45 ActiveRecord::Base.establish_connection 'arunit'46 Course.establish_connection 'arunit2'