Skip to content

Commit

Permalink
add README and CHANGELOG
Browse files Browse the repository at this point in the history
  • Loading branch information
prog-supdex committed Oct 23, 2023
1 parent c467163 commit 94eda5f
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

## master

- Add Mysql support [#18](https://github.com/evilmartians/activerecord-slotted_counters/pull/18) ([@prog-supdex][])

## 0.1.4 (2023-04-19)

- Fix "can't modify frozen String" for the pg adapter (ruby 2.7) [#15](https://github.com/evilmartians/activerecord-slotted_counters/pull/15) ([@LukinEgor][])
Expand All @@ -25,3 +27,4 @@
[@palkan]: https://github.com/palkan
[@LukinEgor]: https://github.com/LukinEgor
[@danielwestendorf]: https://github.com/danielwestendorf
[@prog-supdex]: https://github.com/prog-supdex
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ Using `counter_cache: true` on `belongs_to` associations also works as expected.

## Limitations / TODO

- Gem supports only PostgreSQL for Rails 6
- Gem supports only PostgreSQL and Mysql for Rails 6

## Contributing

Expand Down
2 changes: 1 addition & 1 deletion spec/support/shared_examples_for_cache_counters.rb
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
end

it "must not update 'updated_at' without 'touch' option" do
article = article_class.create!
article = article_class.create!(created_at: 1.minute.ago, updated_at: 1.minute.ago)
previous_updated_at = article.reload.updated_at

article_class.update_counters(article.id, comments_count: 1)
Expand Down

0 comments on commit 94eda5f

Please sign in to comment.