Travis isn't able to resolve assosciation in Rails

Here’s a screenshot:

This is a migration issue. The database against which your tests are running by Travis, does not have the request_id for the BorrowRequest model. That’s why this error is getting throwed. Since it works locally it’s because you ran the migration locally.

You need is to run the migration so that request_id column is added to the borrow_requests table in your database against which the Travis runs the test. This will fix your problem.