update

Updates a single record with the new values, does not set them on the record itself.

update
(
T
U
)
(
,
U[string] values
)

Examples

User user = User.first;
user.update(["username": "Some new name"]); // will run an UPDATE query
user.reload(); // Can be reloaded after to fetch new data from DB if needed

Meta