jeudi 9 juillet 2020

Keeping Track of Fields in Active Record/Ruby

If given the following object:

   Animal {
     ......
     owned: true
    }

Is there a way to check if a given animal was owned within a month? Specifically, is there a way to check when the owned field was changed to false/true via Active record?.

Or would I need to set up a separate object that tracks that field's history?

Aucun commentaire:

Enregistrer un commentaire