diff options
author | Raimonds Simanovskis <raimonds.simanovskis@gmail.com> | 2010-02-10 19:50:59 +0200 |
---|---|---|
committer | Raimonds Simanovskis <raimonds.simanovskis@gmail.com> | 2010-03-01 12:02:10 +0200 |
commit | 20a10e5302ce8f912d27c57702b542a019c7f9f9 (patch) | |
tree | 38de3309520244ba6fda99b8d47525852e926491 /spec/connections | |
parent | 98a87e181aed8131797e55db2ca957bc515cdaca (diff) | |
download | rails-20a10e5302ce8f912d27c57702b542a019c7f9f9.tar.gz rails-20a10e5302ce8f912d27c57702b542a019c7f9f9.tar.bz2 rails-20a10e5302ce8f912d27c57702b542a019c7f9f9.zip |
changes for Oracle support - OracleCompiler and corresponding tests with Oracle syntax
Diffstat (limited to 'spec/connections')
-rw-r--r-- | spec/connections/oracle_connection.rb | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/spec/connections/oracle_connection.rb b/spec/connections/oracle_connection.rb new file mode 100644 index 0000000000..05be04e410 --- /dev/null +++ b/spec/connections/oracle_connection.rb @@ -0,0 +1,19 @@ +puts "Using native Oracle" +require "active_record" +require 'logger' + +# Prepend oracle_enhanced local development directory in front of load path +$LOAD_PATH.unshift "#{File.dirname(__FILE__)}/../../../oracle-enhanced/lib" + +ActiveRecord::Base.logger = Logger.new("debug.log") + +ActiveRecord::Base.configurations = { + 'unit' => { + :adapter => 'oracle_enhanced', + :username => 'arel_unit', + :password => 'arel_unit', + :database => 'orcl', + } +} + +ActiveRecord::Base.establish_connection 'unit' |