I have a Rails 4.2 app with a counter cache (setup with belongs_to :my_model, counter_cache: true) that is setting incorrect values. I can literally call up the console and call MyModel.associated_model_count and get 20, and then call MyModel.associated_model.count and get 19. Saving the model does not fix this.
The values don't seem to be off by much, but some are definitely off and I can't figure out why.