## 1.0.0 (November 15, 2016) Breaking changes: - By default, counter_culture will now update counts inside the same transaction that triggered it. In older versions, counter cache updates happened outside of that transaction. To preserve the old behavior, use the new [`execute_after_commit` option](README.md#executing-counter-cache-updates-after-commit). ## 0.2.3 (October 18, 2016) Improvements: - When running `fix_counts` on a table, wrap each batch in a transaction because that is faster on large tables. ## 0.2.2 (July 11, 2016) Bugfixes: - Use `ActiveSupport.on_load` for better Rails 5 compatibility (see [rails/rails#23589](https://github.com/rails/rails/issues/23589)) ## 0.2.1 (June 15, 2016) Improvements: - Add [`:delta_magnitude` option](https://github.com/magnusvk/counter_culture#dynamic-delta-magnitude) ## 0.2.0 (April 22, 2016) Improvments: - Major refactor of the code that reduces ActiveRecord method pollution. Documented API is unchanged, but behind the scenes a lot has changed. - Ability to configure batch size of `counter_culture_fix_size` ## 0.1.34 (October 27, 2015) Bugfixes: - Fixes an issue when using a default scope that adds a join in conjunction with counter_culture ## 0.1.33 (April 2, 2015) Bugfixes: - Fixes an issue with STI classes and inheritance ## 0.1.32 (March 16, 2015) Improvements: - Restores compatibility with Rails 3.2 (fixes #100) ## 0.1.31 (March 7, 2015) Bugfixes: - Avoid issue with has_and_belongs_to_many and transactions by using new after_commit_action version (fixes #88) ## 0.1.30 (February 10, 2015) Bugfixes: - Correctly use custom relation primary keys (fixes #93) ## 0.1.29 (December 25, 2014) Bugfixes: - Fix fixing counts with multi-level STI models ## 0.1.28 (December 7, 2014) Bugfixes: - fixes development and test dependencies ## 0.1.27 (November 13, 2014) Bugfixes: - re-add after_commit_action as a dependency, that had gone missing in 0.1.26 ## 0.1.26 (November 12, 2014) Bugfixes: - makes fix_counts work correctly with self-referential tables ## 0.1.25 (July 30, 2014) Bugfixes: - makes fix_counts work correctly with custom primary keys ## 0.1.24 (June 27, 2014) Bugfixes: - correctly uses custom primary keys when incrementing / decrementing counts ## 0.1.23 (May 24, 2014) Bugfixes: - fixes problems fixing conditional counter caches with batching ## 0.1.22 (May 24, 2014) Improvements: - support for single-table inheritance in counter_culture_fix_counts ## 0.1.21 (May 24, 2014) Bugfixes: - makes the migration generator compatible with Rails 4.1 ## 0.1.20 (May 14, 2014) Bugfixes: - counter_culture_fix counts now supports float values, where it forced integer values previously ## 0.1.19 (January 29, 2014) Bugfixes: - Use correct date / time formatting for touch option (fixes a problem with MySQL databases) ## 0.1.18 (October 16, 2013) Bugfixes: - Correctly fix counter caches, even when there are no dependent records ## 0.1.17 (October 7, 2013) Bugfixes: - Avoid Rails 4 deprecation warning ## 0.1.16 (October 5, 2013) Features: - Added support for touch option that updates timestamps when updating counter caches ## 0.1.15 (October 5, 2013) Features: - Added a simple migration generator to simplify adding counter cache columns Improvements: - delta_column now supports float values Bugfixes: - Prevent running out of memory when running counter_culture_fix_counts in large tables