📜  rails update without callback - Ruby 代码示例

📅  最后修改于: 2022-03-11 15:04:47.510000             🧑  作者: Mango

代码示例1
# no validations
user.update_attribute(:last_request_at, Time.current)
# no validations AND callback
user.update_columns(last_request_at: Time.current)