module Avram::NestedSaveOperation
Overview
Avram's implementation errors in an update operation:
duplicate key value violates unique constraint "<constraint name>" (PQ::PQError)
{{ type }}.new(params)
causes {{ name }}.save
to create
(rather than update) a record each time it is called, since
no record was passed when the nested operation was instantiated.
Ref: https://github.com/luckyframework/avram/blob/master/src/avram/nested_save_operation.cr
Defined in:
charms.crConstant Summary
-
NESTED_SAVE_OPERATIONS =
[] of Avram::MarkAsFailed