I'm using a one-to-many relationship in my code. It is working perfectly fine on localhost with:
Now when I boot the exact same code on a container with these specs:
The one-to-many and one-to-one relationship stops working. When I access the relationship, it returns an empty object on postgres but the same code works fine on MySQL.
I checked both databases and both databases have the same data. Both database have been seeded and migrated with the same migrations and seeds. The migrations do have foreign refferences to each other to match the relationships defined in the models.
Do you guys have any idea why the relation stops working on postgreSQL / what can I do to further research this problem? Do I miss plugins to use relations on postgreSQL? Thanks!