How to create a rule to run after insert/save when just one value changed

I need to detect when a certain value has changed, then execute some script.

How to do that with AR?

in AR::afterFind() you could save all attributes in $oldAttributes

in AR::afterSave() just compare $oldAttributes with $this->attributes