Add dirty methods for store accessors
#19333

palkan wants to merge palkan:dirty-store into rails:master

We do not currently have an analysis of these two commits