Open colinbruce opened 1 year ago
I'm just recording this in case it helps someone else or, after reviewing, the team tell me a better way! 😄
We use GUIDs as primary key for all tables so my Auditor record primary key starts with:
035d675a-0aa8-...
When audit records are created, the auditor_id is set as:
I rolled back the migration and changed the script to
t.references :auditor, null: false, type: :uuid
After re-migrating, the system successfully records my Auditor account with no, so far, further errors!
Bump. Thank you. That one had me stumped for awhile. Might be worth an add to the README.
I'm just recording this in case it helps someone else or, after reviewing, the team tell me a better way! 😄
We use GUIDs as primary key for all tables so my Auditor record primary key starts with:
When audit records are created, the auditor_id is set as:
I rolled back the migration and changed the script to
After re-migrating, the system successfully records my Auditor account with no, so far, further errors!