mirror of
https://github.com/github/rails.git
synced 2026-01-31 09:18:17 -05:00
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4602 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
24 lines
560 B
Ruby
24 lines
560 B
Ruby
print "Using native SQLServer\n"
|
|
require_dependency 'fixtures/course'
|
|
require 'logger'
|
|
|
|
ActiveRecord::Base.logger = Logger.new("debug.log")
|
|
|
|
ActiveRecord::Base.configurations = {
|
|
'arunit' => {
|
|
:adapter => 'sqlserver',
|
|
:host => 'localhost',
|
|
:username => 'sa',
|
|
:database => 'activerecord_unittest'
|
|
},
|
|
'arunit2' => {
|
|
:adapter => 'sqlserver',
|
|
:host => 'localhost',
|
|
:username => 'sa',
|
|
:database => 'activerecord_unittest2'
|
|
}
|
|
}
|
|
|
|
ActiveRecord::Base.establish_connection 'arunit'
|
|
Course.establish_connection 'arunit2'
|