how about changing the conditional check in set_uuid
to detect whether the uuid has already been set (e.g. ) rather than whether the action is ':insert
? There’s a similar example here setting name rather than uuid: Setting a default value for a Schema in changeset