Forum: Ruby on Rails How to Model a table with two foreign keys of the same table

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
james_027 (Guest)
on 2007-01-30 11:46
(Received via mailing list)
Hi the following table

JobOrder: fields(id, date_filed, date_needed, request_by, process_by,
details, date_finished)
Employee(id, name)

the request_by and the process_by field are the foreign key of the
table emplyee.

How will the model look like?

class Joborder
This topic is locked and can not be replied to.