Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR RUBY

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)
 
PREVIOUS NEXT
Tagged: #rails #update #callback
ADD COMMENT
Topic
Name
3+9 =