aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/connections
diff options
context:
space:
mode:
Diffstat (limited to 'activerecord/test/connections')
-rw-r--r--activerecord/test/connections/native_oracle/connection.rb (renamed from activerecord/test/connections/native_oci/connection.rb)16
1 files changed, 7 insertions, 9 deletions
diff --git a/activerecord/test/connections/native_oci/connection.rb b/activerecord/test/connections/native_oracle/connection.rb
index 0b1babb898..095fe9d5ee 100644
--- a/activerecord/test/connections/native_oci/connection.rb
+++ b/activerecord/test/connections/native_oracle/connection.rb
@@ -1,25 +1,23 @@
-print "Using OCI Oracle\n"
+print "Using Oracle\n"
require_dependency 'fixtures/course'
require 'logger'
ActiveRecord::Base.logger = Logger.new STDOUT
ActiveRecord::Base.logger.level = Logger::WARN
-db1 = 'activerecord_unittest'
-db2 = 'activerecord_unittest2'
+# Set these to your database connection strings
+db = 'activerecord_unit_tests'
ActiveRecord::Base.establish_connection(
- :adapter => 'oci',
- :host => '', # can use an oracle SID
+ :adapter => 'oracle',
:username => 'arunit',
:password => 'arunit',
- :database => db1
+ :database => db
)
Course.establish_connection(
- :adapter => 'oci',
- :host => '', # can use an oracle SID
+ :adapter => 'oracle',
:username => 'arunit2',
:password => 'arunit2',
- :database => db2
+ :database => db
)