UUID and primary_key inference on associations

Hi there
I’ve been able to create pg relations that stores UUID into tables in the ‘id’ field. However, it seems to be unable to use .associate(:parent) when creating a changset, I need to specify ‘primary_key :id’ in the schema so that the pk can be inferred. The problem that flows from that is that doing so expects the pk to be an integer, so the whole thing breaks.

what would be the correct way to either specify the primary_key when its not an integer or to otherwise be able to infer the association when writing the child record?

thanks for any insights

Please report an issue in rom-repository with a script showing what you want to achieve, and we’ll take it from there.

Thanks sonic, will do.