Bump activerecord from 6.0.2.1 to 7.0.4
Bumps activerecord from 6.0.2.1 to 7.0.4.
Release notes
Sourced from activerecord's releases.
v7.0.4
Active Support
Redis cache store is now compatible with redis-rb 5.0.
Jean Boussier
Fix
NoMethodErroron customActiveSupport::Deprecationbehavior.
ActiveSupport::Deprecation.behavior=was supposed to accept any object that responds tocall, but in fact its internal implementation assumed that this object could respond toarity, so it was restricted to onlyProcobjects.This change removes this
arityrestriction of custom behaviors.Ryo Nakamura
Active Model
Handle name clashes in attribute methods code generation cache.
When two distinct attribute methods would generate similar names, the first implementation would be incorrectly re-used.
class A attribute_method_suffix "_changed?" define_attribute_methods :x endclass B attribute_method_suffix "?" define_attribute_methods :x_changed end
Jean Boussier
Active Record
Symbol is allowed by default for YAML columns
Étienne Barrié
Fix
ActiveRecord::Storeto serialize as a regular Hash
... (truncated)
Changelog
Sourced from activerecord's changelog.
Rails 7.0.4 (September 09, 2022)
Symbol is allowed by default for YAML columns
Étienne Barrié
Fix
ActiveRecord::Storeto serialize as a regular HashPreviously it would serialize as an
ActiveSupport::HashWithIndifferentAccesswhich is wasteful and cause problem with YAML safe_load.Jean Boussier
Add
timestamptzas a time zone aware type for PostgreSQLThis is required for correctly parsing
timestamp with time zonevalues in your database.If you don't want this, you can opt out by adding this initializer:
ActiveRecord::Base.time_zone_aware_types -= [:timestamptz]Alex Ghiculescu
Fix supporting timezone awareness for
tsrangeandtstzrangearray columns.# In database migrations add_column :shops, :open_hours, :tsrange, array: true # In app config ActiveRecord::Base.time_zone_aware_types += [:tsrange] # In the code times are properly converted to app time zone Shop.create!(open_hours: [Time.current..8.hour.from_now])Wojciech Wnętrzak
Resolve issue where a relation cache_version could be left stale.
Previously, when
resetwas called on a relation object it did not reset the cache_versions ivar. This led to a confusing situation where despite having the correct data the relation still reported a stale cache_version.Usage:
developers = Developer.all developers.cache_version
... (truncated)
Commits
8015c2cVersion 7.0.44d9b4b4Merge pull request #45872 from the-spectator/correct_hwia_encodingc5a407dLinkify code references [ci-skip]e874cf5Fix typos [ci-skip]fb09b1bDon't handle this change for legacy_connection_handling0667ba4Merge pull request #45773 from eileencodes/only-setup-shared-pools-if-we-have...d60d058Merge pull request #45744 from fatkodima/mysql-change-column-collation73d6fa8Merge pull request #45555 from bbenno/mainaed8afaMerge pull request #44760 from lxxxvi/fix_rails_issue_db_fixtures_load_raises852d2b3Appease rubocop- 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 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) -
@dependabot use these labelswill set the current labels as the default for future PRs for this repo and language -
@dependabot use these reviewerswill set the current reviewers as the default for future PRs for this repo and language -
@dependabot use these assigneeswill set the current assignees as the default for future PRs for this repo and language -
@dependabot use this milestonewill set the current milestone as the default for future PRs for this repo and language
You can disable automated security fix PRs for this repo from the Security Alerts page.