On 26 March 2010 11:16, mxrgus pxrt [email protected] wrote:
Have a look at has_many :through with class_name and foreign_key. You
will need two of these, one for parents and one for children.
has_many :parents, :through => :service_connection, :class_name… etc
has_many :children, :through => :service_connection, :class_name…
The rails guide on activerecord associations at
http://guides.rubyonrails.org/ should help.