PaperClip Gem adds a default attribute called -> _updated_at. What is the use of _updated_at related to paperclip.
Use of _updated_at in paperclip gem (ROR, ruby)
References: https://github.com/thoughtbot/paperclip/blob/main/lib/paperclip/attachment.rb#LL310C4-L315C8
https://www.rubydoc.info/github/thoughtbot/paperclip/Paperclip%2FAttachment:updated_at
I have an updated_at column separately for a model say photo and a column called photo_updated_at gets created as part of the schema. What is the use of this photo_update_at column ?
# Returns the last modified time of the file as originally assigned, and # lives in the <attachment>_updated_at attribute of the model. def updated_at time = instance_read(:updated_at) time && time.to_f.to_i end