rails 7.0.2
Active Support
-
Fix
ActiveSupport::EncryptedConfigurationto be compatible with Psych 4Stephen Sugden
-
Improve
File.atomic_writeerror handling.Daniel Pepper
Active Model
-
Use different cache namespace for proxy calls
Models can currently have different attribute bodies for the same method names, leading to conflicts. Adding a new namespace
:active_model_proxyfixes the issue.Chris Salzberg
Active Record
-
Fix
PG.connectkeyword arguments deprecation warning on ruby 2.7.Nikita Vasilevsky
-
Fix the ability to exclude encryption params from being autofiltered.
Mark Gangl
-
Dump the precision for datetime columns following the new defaults.
Rafael Mendonça França
-
Make sure encrypted attributes are not being filtered twice.
Nikita Vasilevsky
-
Dump the database schema containing the current Rails version.
Since https://github.com/rails/rails/pull/42297, Rails now generate datetime columns with a default precision of 6. This means that users upgrading to Rails 7.0 from 6.1, when loading the database schema, would get the new precision value, which would not match the production schema.
To avoid this the schema dumper will generate the new format which will include the Rails version and will look like this:
ActiveRecord::Schema[7.0].defineWhen upgrading from Rails 6.1 to Rails 7.0, you can run the
rails app:updatetask that will set the current schema version to 6.1.Rafael Mendonça França
-
Fix parsing expression for PostgreSQL generated column.
fatkodima
-
Fix
Mysql2::Error: Commands out of sync; you can't run this command nowwhen bulk-inserting fixtures that exceedmax_allowed_packetconfiguration.Nikita Vasilevsky
-
Fix error when saving an association with a relation named
record.Dorian Marié
-
Fix
MySQL::SchemaDumperbehavior about datetime precision value.y0t4
-
Improve associated with no reflection error.
Nikolai
-
Fix PG.connect keyword arguments deprecation warning on ruby 2.7.
Fixes #44307.
Nikita Vasilevsky
-
Fix passing options to
check_constraintfromchange_table.Frederick Cheung
Action View
-
Ensure
preload_link_tagpreloads JavaScript modules correctly.Máximo Mussini
-
Fix
stylesheet_link_tagand similar helpers are being used to work in objects with aresponsemethod.dark-panda
Action Pack
- No changes.
Active Job
- No changes.
Action Mailer
- No changes.
Action Cable
- No changes.
Active Storage
-
Revert the ability to pass
service_nameparam toDirectUploadsControllerwhich was introduced in 7.0.0.That change caused a lot of problems to upgrade Rails applications so we decided to remove it while in work in a more backwards compatible implementation.
Gannon McGibbon
-
Allow applications to opt out of precompiling Active Storage JavaScript assets.
jlestavel
Action Mailbox
- No changes.
Action Text
- No changes.
Railties
- No changes.