You can add a change with an after action hook to your user resource:
changes do
change after_action(fn changeset, result, _context ->
# create personal organization here
end), on: [:create] # only do this when a user is created.
end
You can add a change with an after action hook to your user resource:
changes do
change after_action(fn changeset, result, _context ->
# create personal organization here
end), on: [:create] # only do this when a user is created.
end