I have a Request model, which has a requesteeID field. When I'm running the site on my local computer, I can run this line of code:
a = Request.find_all_by_requesteeID(current_user.id)
and it works fine (note: I can't do current_user.requests because the models are joined by another field, requesterID). But when I run it on Heroku, it crashes, with the following error:
NoMethodError (undefined method `find_all_by_requesteeID' for #<Class:0x2ae0d29606d0>):
I have run heroku db:push, so the database is up to date. What could be causing this error on Heroku? Thanks for reading.