Is there any way I can touch a model causing the updated_at
field to update to the current time without actually changing anything in the other fields?
You can use touch
model.touch
or
model.touch(:updated_at) #or anyother timestamp attribute
Documentation here
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With