Closed jimsynz closed 8 months ago
Ahh, I've figured out that the actual source of the problem is that attribute_type
in the belongs_to
DSL defaults to UUID. I think we should add a validator that ensures that it is of the same type as the referee's public key type.
Discussed out of band that there is a validation that should prevent this from happening. That validation is in Ash. I'll move this issue there, but we should get a reproduction in test or something more concrete to debug.
I believe this validation is functioning as expected now, in ash. Closing this as fixed.
Describe the bug I have created two resources like so:
When adding the relationship between the two resources and running the migration generator, it generates the following (incorrect) migration:
Note that the
references
macro has it'stype
argument set to:uuid
instead of:bigserial
.** Runtime
Additional context Running in a devcontainer on my M1-based mac.