pub const ON_UPDATE: ColumnMarker;Expand description
Specifies the ON UPDATE action for foreign key references.
§Example
ⓘ
#[column(references = User::id, on_update = CASCADE)]
user_id: i32,§Supported Actions
CASCADE: Update referencing rows when referenced row is updatedSET_NULL: Set the column to NULL when referenced row is updatedSET_DEFAULT: Set the column to its default valueRESTRICT: Prevent update if referencedNO_ACTION: Similar to RESTRICT (default)