Answers for "rails update without validation"

1

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)
Posted by: Guest on May-06-2020
0

activerecord update skip validation

object.attribute = value
object.save(:validate => false)
Posted by: Guest on September-13-2020

Code answers related to "rails update without validation"

Browse Popular Code Answers by Language