diff options
Diffstat (limited to 'activerecord/test/connections/native_sybase')
-rw-r--r-- | activerecord/test/connections/native_sybase/connection.rb | 33 |
1 files changed, 16 insertions, 17 deletions
diff --git a/activerecord/test/connections/native_sybase/connection.rb b/activerecord/test/connections/native_sybase/connection.rb index a3ecf85326..ec3e9ebfc3 100644 --- a/activerecord/test/connections/native_sybase/connection.rb +++ b/activerecord/test/connections/native_sybase/connection.rb @@ -4,21 +4,20 @@ require 'logger' ActiveRecord::Base.logger = Logger.new("debug.log") -db1 = 'activerecord_unittest' -db2 = 'activerecord_unittest2' +ActiveRecord::Base.configurations = { + 'arunit' => { + :adapter => 'sybase', + :host => 'database_ASE', + :username => 'sa', + :database => 'activerecord_unittest' + }, + 'arunit2' => { + :adapter => 'sybase', + :host => 'database_ASE', + :username => 'sa', + :database => 'activerecord_unittest2' + } +} -ActiveRecord::Base.establish_connection( - :adapter => "sybase", - :host => "database_ASE", - :username => "sa", - :password => "", - :database => db1 -) - -Course.establish_connection( - :adapter => "sybase", - :host => "database_ASE", - :username => "sa", - :password => "", - :database => db2 -) +ActiveRecord::Base.establish_connection 'arunit' +Course.establish_connection 'arunit2' |