Change QueryMethods#in_order_of to drop records not listed in values.
in_order_of now filters down to the values provided, to match the behavior of the Enumerable version.
Kevin Newton
Allow named expression indexes to be revertible.
Previously, the following code would raise an error in a reversible migration executed while rolling back, due to the index name not being used in the index removal.
Better error messages when association name is invalid in the argument of ActiveRecord::QueryMethods::WhereChain#missing.
ykpythemind
Fix ordered migrations for single db in multi db environment.
Himanshu
Extract on update CURRENT_TIMESTAMP for mysql2 adapter.
Kazuhiro Masuda
Fix incorrect argument in PostgreSQL structure dump tasks.
Updating the --no-comment argument added in Rails 7 to the correct --no-comments argument.
Alex Dent
Fix schema dumping column default SQL values for sqlite3.
fatkodima
Correctly parse complex check constraint expressions for PostgreSQL.
fatkodima
Fix timestamptz attributes on PostgreSQL handle blank inputs.
Alex Ghiculescu
Fix migration compatibility to create SQLite references/belongs_to column as integer when migration version is 6.0.
Reference/belongs_to in migrations with version 6.0 were creating columns as
bigint instead of integer for the SQLite Adapter.
Marcelo Lauxen
Fix joining through a polymorphic association.
Alexandre Ruban
Fix QueryMethods#in_order_of to handle empty order list.
Post.in_order_of(:id,[]).to_a
Also more explicitly set the column as secondary order, so that any other
value is still ordered.
Jean Boussier
Fix rails dbconsole for 3-tier config.
Eileen M. Uchitelle
Fix quoting of column aliases generated by calculation methods.
Since the alias is derived from the table name, we can't assume the result
is a valid identifier.
classTest < ActiveRecord::Baseself.table_name='1abc'endTest.group(:id).count# syntax error at or near "1" (ActiveRecord::StatementInvalid)# LINE 1: SELECT COUNT(*) AS count_all, "1abc"."id" AS 1abc_id FROM "1...
Jean Boussier
Action View
Fix button_to to work with a hash parameter as URL.
MingyuanQin
Fix link_to with a model passed as an argument twice.
Alex Ghiculescu
Action Pack
Fix ActionController::Parameters methods to keep the original logger context when creating a new copy
of the original object.
Previously in perform_enqueued_jobs, deserialize_arguments_if_needed
was called before calling perform_now. When a record no longer exists
and is serialized using GlobalID this led to raising
an ActiveJob::DeserializationError before reaching perform_now call.
This behaviour makes difficult testing the job discard_on/retry_on logic.
Now deserialize_arguments_if_needed call is postponed to when perform_now
is called.
Example:
classUpdateUserJob < ActiveJob::Basediscard_onActiveJob::DeserializationErrordefperform(user)# ...endend# In the testUser.destroy_allassert_nothing_raiseddoperform_enqueued_jobsonly: UpdateUserJobend
Jacopo Beschi
Action Mailer
Keep configuration of smtp_settings consistent between 6.1 and 7.0.
Depfu will automatically keep this PR conflict-free, as long as you don't add any commits to this branch yourself. You can also trigger a rebase manually by commenting with @depfu rebase.
All Depfu comment commands
@​depfu rebase
Rebases against your default branch and redoes this update
@​depfu recreate
Recreates this PR, overwriting any edits that you've made to it
@​depfu merge
Merges this PR once your tests are passing and conflicts are resolved
@​depfu close
Closes this PR and deletes the branch
@​depfu reopen
Restores the branch and reopens this PR (if it's closed)
@​depfu pause
Ignores all future updates for this dependency and closes this PR
@​depfu pause [minor|major]
Ignores all future minor/major updates for this dependency and closes this PR
@​depfu resume
Future versions of this dependency will create PRs again (leaves this PR as is)
Here is everything you need to know about this upgrade. Please take a good look at what changed and the test results before merging this pull request.
What changed?
✳️ rails (>= 3.0, < 6 → >= 3.0, <= 7.0.1) · Repo
Release Notes
7.0.1
Does any of this look wrong? Please let us know.
Commits
See the full diff on Github. The new version differs by 9 commits:
Preparing for 7.0.1 release
Merge pull request #44039 from kamipo/bump-year-to-2022
Merge pull request #44064 from flavorjones/42292-improve-docs-for-activesupport-acts-like
Revert "Update the deprecation message for `Enumerable#sum` and `Array#sum`"
Update the deprecation message for `Enumerable#sum` and `Array#sum`
Remove feature checking for Class#descendants
Fix a mistake in DescendantsTracker#descendants for Ruby 3.1
Ruby 3.1: Handle `Class#subclasses` existing without `Class#descendants`
Fix logger format with Ruby 3.1
Depfu will automatically keep this PR conflict-free, as long as you don't add any commits to this branch yourself. You can also trigger a rebase manually by commenting with
@depfu rebase
.All Depfu comment commands