Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # File : ../rb/acme_util.rb
- #
- # Source : ecg_ruby_util_rb.tpl
- #
- # Purpose : Connect to database, provide supporting classes for tables / views.
- # Modification History
- # When Who What
- # 09/07/2009 hubert Add MLS Views (F0040)
- # 10/07/2009 hubert Prefix MLS Views rather than use postfix (F0040)
- # 11/08/2009 hubert No need to have separate code for MLS views (F0161)
- require "rubygems"
- require "ruby_plsql"
- require 'active_record'
- # Establish a connection to Oracle
- ActiveRecord::Base.establish_connection(
- :adapter => "oracle_enhanced",
- :host => "orcl",
- :username => "r042",
- :password => "r042")
- # stick plsql connection on top of AR connection.
- plsql.connection = ActiveRecord::Base.connection.raw_connection
- class EtlTranslation < ActiveRecord::Base
- end
Add Comment
Please, Sign In to add comment