How to Model a table with two foreign keys of the same table

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 forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs