Answers for "rails update without callbacks"

1

rails update without callback

# no validations
user.update_attribute(:last_request_at, Time.current)
# no validations AND callback
user.update_columns(last_request_at: Time.current)
Posted by: Guest on May-06-2020

Browse Popular Code Answers by Language