I am migrating the attachments from paperclip to Active storage.
In paperclip, we can check whether the file is updated by using the active model dirty as below,