ActiveModel: Rails 6.1.0 - *_previously_changed? accepts :from and :to keyword arguments
*_previously_changed?
accepts :from
and :to
keyword arguments like *_changed?
since Rails 6.1.0
task.update!(status: :archived)
task.status_previously_changed?(from: "active", to: "archived")
# => true