Hi all, I'm working in a Rails projects and I need to have 2 one to many relationships to the same datatables:
I explain myself: I have a model Worker and I have a model Job. A Job is made by one Worker and is checked by other. So, I have these fields in the Job class: job_worker and job_checker. In my Job model I added the belongs_to :Worker and in my Worker model I added has_many :job. This is OK, or I've to do something more? -- TSU. Amador Cuenca -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk@googlegroups.com. To unsubscribe from this group, send email to rubyonrails-talk+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.