1
votes

I found an issue I cannot figure out what is wrong. I am creating a rails app. I have some models joined by "join-models".

Locally if I run 'rspec' everything is working. But if Travis CI runs the specs, it cant resolve the dependencies. And I got an error. What can I do to fix this?

This is the output from Travis CI: enter image description here enter image description here

And this is locally from my terminal. enter image description here

1

1 Answers

1
votes

It looks like a migration issue. The database against which your tests are running by Travis CI, does not have the request_id for the BorrowRequest model. That's why you got that error. But it works locally because you ran the migration locally.

So, all 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 CI runs the test. That should fix your problem.