diff options
Diffstat (limited to 'activerecord/test/connections/native_oracle/connection.rb')
-rw-r--r-- | activerecord/test/connections/native_oracle/connection.rb | 28 |
1 files changed, 16 insertions, 12 deletions
diff --git a/activerecord/test/connections/native_oracle/connection.rb b/activerecord/test/connections/native_oracle/connection.rb index b0d9696a70..e127e36675 100644 --- a/activerecord/test/connections/native_oracle/connection.rb +++ b/activerecord/test/connections/native_oracle/connection.rb @@ -8,16 +8,20 @@ ActiveRecord::Base.logger.level = Logger::WARN # Set these to your database connection strings db = ENV['ARUNIT_DB'] || 'activerecord_unittest' -ActiveRecord::Base.establish_connection( - :adapter => 'oracle', - :username => 'arunit', - :password => 'arunit', - :database => db -) +ActiveRecord::Base.configurations = { + 'arunit' => { + :adapter => 'oracle', + :username => 'arunit', + :password => 'arunit', + :database => db, + }, + 'arunit2' => { + :adapter => 'oracle', + :username => 'arunit2', + :password => 'arunit2', + :database => db + } +} -Course.establish_connection( - :adapter => 'oracle', - :username => 'arunit2', - :password => 'arunit2', - :database => db -) +ActiveRecord::Base.establish_connection 'arunit' +Course.establish_connection 'arunit2' |