#1 楼 @zj0713001 请问我这样连一个 oracle,连接成功了,defect.all
也有内容了
但是Defect.where(:defect_id=>123).bg_summary
却显示bg_summary
为undefined method
请问我漏了什么?
谢谢
qc:
adapter: oracle_enhanced
host: 123.123.123.123
encoding: utf8
database: db
username: system
password: system
port: 1521
class Defect < ActiveRecord::Base
establish_connection :qc
self.table_name='bug'
end
gem 'activerecord-oracle_enhanced-adapter', '~> 1.4.0'
gem 'ruby-oci8', '~> 2.1.0'