This method is deprecated in Rails 5.1 because its behavior will be different in `before` and `after` callbacks. We're replacing the deprecated `attribute_changed?` and `attribute_was` methods with `saved_change_to_attribute?` and `attribute_before_last_save` during `after_save` callbacks. https://github.com/rails/rails/pull/32835/