Bump activerecord from 6.1.4.1 to 7.1.3
Bumps activerecord from 6.1.4.1 to 7.1.3.
Release notes
Sourced from activerecord's releases.
7.1.3
Active Support
Handle nil
backtrace_locationsinActiveSupport::SyntaxErrorProxy.Eugene Kenny
Fix
ActiveSupport::JSON.encodeto prevent duplicate keys.If the same key exist in both String and Symbol form it could lead to the same key being emitted twice.
Manish Sharma
Fix
ActiveSupport::Cache::Store#read_multiwhen using a cache namespace and local cache strategy.Mark Oleson
Fix
Time.now/DateTime.now/Date.todayto return results in a system timezone after#travel_to.There is a bug in the current implementation of #travel_to: it remembers a timezone of its argument, and all stubbed methods start returning results in that remembered timezone. However, the expected behaviour is to return results in a system timezone.
Aleksei Chernenkov
Fix
:unless_existoption forMemoryStore#write(et al) when using a cache namespace.S. Brent Faulkner
Fix ActiveSupport::Deprecation to handle blaming generated code.
Jean Boussier, fatkodima
Active Model
- No changes.
Active Record
- Fix Migrations with versions older than 7.1 validating options given to
add_reference.
... (truncated)
Changelog
Sourced from activerecord's changelog.
Rails 7.1.3 (January 16, 2024)
Fix Migrations with versions older than 7.1 validating options given to
add_reference.Hartley McGuire
Ensure
reloadsets correct owner for each association.Dmytro Savochkin
Fix view runtime for controllers with async queries.
fatkodima
Fix
load_asyncto work with query cache.fatkodima
Fix polymorphic
belongs_toto correctly use parent'squery_constraints.fatkodima
Fix
Preloaderto not generate a query for already loaded association withquery_constraints.fatkodima
Fix multi-database polymorphic preloading with equivalent table names.
When preloading polymorphic associations, if two models pointed to two tables with the same name but located in different databases, the preloader would only load one.
Ari Summer
Fix
encrypted_attribute?to take into account context properties passed toencrypts.Maxime Réty
Fix
find_byto work correctly in presence of composite primary keys.fatkodima
Fix async queries sometimes returning a raw result if they hit the query cache.
ShipPart.async_countcould return a raw integer rather than a Promise if it found the result in the query cache.fatkodima
... (truncated)
Commits
36c1591Preparing for 7.1.3 releasea0eef52Merge pull request #50767 from rporrasluc/fix-db-runtime-calculation4b699daMerge pull request #50680 from skipkayhil/hm-fix-legacy-add-reference9cf3c5bFix CHANGELOG21dff57Add changelog entry for #4638357a50f5Merge pull request #46383 from dmytro-savochkin/fix-activerecord-reload-assoc...81c8023Sync changelog620d335Add examples to #slice and #values_at documentation [ci-skip] (#50679) (#50736)1f8c6c3:scissors:1c90604Merge pull request #50382 from summera/polymorphic-multi-db-preload-fix- Additional commits viewable in compare view
Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.
Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
-
@dependabot rebasewill rebase this PR -
@dependabot recreatewill recreate this PR, overwriting any edits that have been made to it -
@dependabot mergewill merge this PR after your CI passes on it -
@dependabot squash and mergewill squash and merge this PR after your CI passes on it -
@dependabot cancel mergewill cancel a previously requested merge and block automerging -
@dependabot reopenwill reopen this PR if it is closed -
@dependabot closewill close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually -
@dependabot show <dependency name> ignore conditionswill show all of the ignore conditions of the specified dependency -
@dependabot ignore this major versionwill close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself) -
@dependabot ignore this minor versionwill close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself) -
@dependabot ignore this dependencywill close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself) You can disable automated security fix PRs for this repo from the Security Alerts page.