hlascelles / que-scheduler

A lightweight cron scheduler for the async job worker Que
MIT License
115 stars 22 forks source link

Bump activerecord from 7.0.7.2 to 7.0.8 #431

Closed dependabot[bot] closed 1 year ago

dependabot[bot] commented 1 year ago

Bumps activerecord from 7.0.7.2 to 7.0.8.

Release notes

Sourced from activerecord's releases.

7.0.8

Active Support

  • Fix TimeWithZone still using deprecated #to_s when ENV or config to disable it are set.

    Hartley McGuire

  • Fix CacheStore#write_multi when using a distributed Redis cache with a connection pool.

    Fixes #48938.

    Jonathan del Strother

Active Model

  • No changes.

Active Record

  • Fix change_column not setting precision: 6 on datetime columns when using 7.0+ Migrations and SQLite.

    Hartley McGuire

  • Fix unscope is not working in specific case

    Before:

    Post.where(id: 1...3).unscope(where: :id).to_sql # "SELECT `posts`.* FROM `posts` WHERE `posts`.`id` >= 1 AND `posts`.`id` < 3"
    

    After:

    Post.where(id: 1...3).unscope(where: :id).to_sql # "SELECT `posts`.* FROM `posts`"
    

    Fixes #48094.

    Kazuya Hatanaka

  • Fix associations to a STI model including a class_name parameter

... (truncated)

Changelog

Sourced from activerecord's changelog.

Rails 7.0.8 (September 09, 2023)

  • Fix change_column not setting precision: 6 on datetime columns when using 7.0+ Migrations and SQLite.

    Hartley McGuire

  • Fix unscope is not working in specific case

    Before:

    Post.where(id: 1...3).unscope(where: :id).to_sql # "SELECT `posts`.* FROM `posts` WHERE `posts`.`id` >= 1 AND `posts`.`id` < 3"
    

    After:

    Post.where(id: 1...3).unscope(where: :id).to_sql # "SELECT `posts`.* FROM `posts`"
    

    Fixes #48094.

    Kazuya Hatanaka

  • Fix associations to a STI model including a class_name parameter

    class Product < ApplicationRecord
      has_many :requests, as: :requestable, class_name: "ProductRequest", dependent: :destroy
    end
    

    STI tables

    class Request < ApplicationRecord belongs_to :requestable, polymorphic: true

    validate :request_type, presence: true end

    class ProductRequest < Request belongs_to :user end

    Accessing such association would lead to:

    table_metadata.rb:22:in `has_column?': undefined method `key?' for nil:NilClass (NoMethodError)
    

    Romain Filinto

... (truncated)

Commits
  • fc734f2 Preparing for 7.0.8 release
  • 8db97a7 Fix change_column not setting precision for sqlite
  • ce75465 Merge pull request #48095 from ippachi/triple-dot-range-unscope
  • d1ac40c Merge pull request #48657 from alpaca-tc/fix-association-with-has-many-inversing
  • 164fcfd Merge pull request #48653 from alpaca-tc/fix-association-pretty-print
  • cdb6d89 Fix Compatibility tests using @internal_metadata
  • c1150f4 Merge pull request #49101 from xfifix/fix/sti_class_name
  • 729dfda Merge pull request #49089 from emilyqiu1005/emilyqiu/add-kill-to-mysql-read-q...
  • 6155ad6 Fix 6.1 change_table setting datetime precision
  • d73c81e Do not log internal options when running migrations
  • Additional commits viewable in compare view


Dependabot compatibility score

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 rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `@dependabot show ignore conditions` will show all of the ignore conditions of the specified dependency - `@dependabot ignore this major version` will 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 version` will 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 dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)