Updates the given record in the DB with all the current values.
Updates by ID. Assumes the record is already in the DB. Does not insert under any circumstance.
User user = User.first; user.posts = posts - 2; user.save();
See Implementation
Updates the given record in the DB with all the current values.
Updates by ID. Assumes the record is already in the DB. Does not insert under any circumstance.