Update the jobs table to add real reference to users table
- Added migration file to add
requestor_idfield containing the id of user requesting the job, making the field foreign key for users and deleting the existing stringrequestorfield. - Added association
belongs_toinjob.rbforuserwith validation of presence of user andhas_manyinuser.rbforjobs. - Updated other files to use
requestorassociation with user object - Updated tests in
spec/debcifiles. - Added tests in
spec/debci/job_spec.rbto check null value constraint data integrity constraint with foreign key validation.
Edited by Pavit Kaur