Displaying 1 result from an estimated 1 matches for "testrslt".
Did you mean:
testresult
2009 Apr 16
0
Magic multi connections with association problem
...::Request) in activerecord association.
Below is my code:
module A
establish_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 =...