cloedu87

cloedu87 OP

If I declare the pk as explicitly non-prefixed: uuid_attribute :id, prefixed?: false then I finally got my versioning working! :slight_smile:

but yes, this is just a workaround for now…

0
Post #11
zachdaniel

zachdaniel

Creator of Ash

:thinking: that is definitely strange. I won’t have time to dig into this, but somewhere in this code:

is where that error message is coming from. You could potentially clone down that repo and debug manually to see what the value being provided is.

0
Post #12
hwuethrich

hwuethrich

Hi @zachdaniel

I created a PR with a fix for this issue: fix: correctly carry over first primary key attribute type and constraints by hwuethrich · Pull Request #36 · ash-project/ash_paper_trail · GitHub

The reason why your change did not fix the issue was that you were using the attributes variable, which does not contain the PK in most cases:

2
Post #13
zachdaniel

zachdaniel

Creator of Ash

wonderful, thank you :slight_smile: I’ve merged your PR.

1
Post #14
— All posts loaded —