Rails 7.1 Supports Descending Order For in_batches Without Block
With Rails 7.1, in_batches method without a block works fine for both `ASC/DESC` order values.Rails 7.1 Adds after_discard Method To ActiveJob For Discarded Jobs.
Rails 7.1 introduces the after_discard method, allowing us to run a callback when a job is about to be discarded.Rails 7.1 Allows Subscribing To ActiveRecord Transaction Events For Instrumentation.
With Rails 7.1, we can subscribe to ActiveRecord transaction events for instrumentation with the help of transaction.active_record.Rails 7.1 Adds Adapter Option To Disallow Foreign Keys.
With Rails 7.1, we can disable foreign key constraints for the entire application by adding foreign_keys false option to database.ymlRails 7.1 Raises Error On Assignment To Readonly Attributes.
Rails 7.1 now raises an ActiveRecord::ReadonlyAttributeError on assignment to readonly attributes.Rails 7.1 Supports Multiple Preview Paths For Mailers.
Rails 7.1 adds support for multiple mailer preview paths, enhancing flexibility and organization by allowing previews across various directories.Rails 7.1 Adds Support For Logging Background Job Enqueue Callers.
Rails 7.1 ActiveJob logs background job enqueue callers with backtraces, showing the file and line number where jobs are triggered.Rails Adds The Ability To Ignore Counter Cache Columns While They Are Backfilling
With Rails 7.2, we can now ignore counter cache columns during backfilling, allowing faster execution by reducing N+1 queries from counter cache column updates.Rails 7.1 Adds Support For Composite Key Multi-Column Ordering In ActiveRecord::Batches
With Rails 7.1, `ActiveRecord::Batches` now supports multi-column ordering for models with composite primary keys, enabling separate ascending or descending order for each key.Rails 7.1 Adds *_deliver Callbacks To ActionMailer
With Rails 7.1, we can hook into the lifecycle of email delivery with the help of ActionMailer before_deliver, around_deliver and after_deliver callbacks.