pub async fn insert(
conn: &mut PgConnection,
new: &NewCreditRegistrationEvent,
) -> ModelResult<Uuid>Expand description
Callers that also change state must go through credit_registrations::transition instead,
which writes both in one transaction.