diff options
Diffstat (limited to 'activerecord/test/connections')
-rw-r--r-- | activerecord/test/connections/native_oci/connection.rb | 25 | ||||
-rw-r--r-- | activerecord/test/connections/native_oracle/connection.rb | 24 |
2 files changed, 25 insertions, 24 deletions
diff --git a/activerecord/test/connections/native_oci/connection.rb b/activerecord/test/connections/native_oci/connection.rb new file mode 100644 index 0000000000..2d9006c231 --- /dev/null +++ b/activerecord/test/connections/native_oci/connection.rb @@ -0,0 +1,25 @@ +print "Using OCI Oracle\n" +require 'fixtures/course' +require 'logger' + +ActiveRecord::Base.logger = Logger.new STDOUT +ActiveRecord::Base.logger.level = Logger::WARN + +db1 = 'activerecord_unittest' +db2 = 'activerecord_unittest2' + +ActiveRecord::Base.establish_connection( + :adapter => 'oci', + :host => '', # can use an oracle SID + :username => 'arunit', + :password => 'arunit', + :database => db1 +) + +Course.establish_connection( + :adapter => 'oci', + :host => '', # can use an oracle SID + :username => 'arunit2', + :password => 'arunit2', + :database => db2 +) diff --git a/activerecord/test/connections/native_oracle/connection.rb b/activerecord/test/connections/native_oracle/connection.rb deleted file mode 100644 index 7e4cc5b574..0000000000 --- a/activerecord/test/connections/native_oracle/connection.rb +++ /dev/null @@ -1,24 +0,0 @@ -print "Using native Oracle\n" -require 'fixtures/course' -require 'logger' - -ActiveRecord::Base.logger = Logger.new("debug.log") - -db1 = 'local' -db2 = 'local' - -ActiveRecord::Base.establish_connection( - :adapter => "oracle", - :host => "localhost", - :username => "arunit", - :password => "arunit", - :database => db1 -) - -Course.establish_connection( - :adapter => "oracle", - :host => "localhost", - :username => "arunit2", - :password => "arunit2", - :database => db2 -) |