update attribute validate rails code example
Example 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)
Example 2: activerecord update skip validation
object.attribute = value
object.save(:validate => false)