search for: testrslt_reqno

Displaying 1 result from an estimated 1 matches for "testrslt_reqno".

2009 Apr 16
0
Magic multi connections with association problem
...tablish_connection :A end module B establish_connection :B end # and many module.... class Request < ActiveRecord::Base set_table_name "request" set_primary_key "req_reqno" has_many :testrslt, :class_name => "Testrslt", :foreign_key => "testrslt_reqno" end class Testrslt < ActiveRecord::Base set_table_name "testrslt" belongs_to :request, :class_name => "Request", :foreign_key => "testrslt_reqno" end >> a = DBA::Request.last => It is ok >> a.testrslt => # The association is n...