Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR RUBY

rails update without validation

# 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 #validation
ADD COMMENT
Topic
Name
3+4 =