Merge pull request #13018 from heruku/scoping_fix

changed update counter to act on unscoped model
Conflicts:
	activerecord/CHANGELOG.md
	activerecord/test/cases/associations/has_many_associations_test.rb