How to do composite keys using FactoryGirl with below relationship
Portal(uuid, name)
listing(uuid, portal_uuid, name)
location(uuid, portal_uuid)
in here listing and location has composite primary key (uuid, portal_uuid).
I have tried different kind of ways but can't solve it. Have anyone met this problem, pls help?