From 2022ee1be54b16b274532ab3f51c873549c9118d Mon Sep 17 00:00:00 2001 From: Akhil G Krishnan Date: Tue, 26 Sep 2023 22:54:46 +0530 Subject: [PATCH] [skip ci] ActiveRecord notable changes added to 7.1 release note --- guides/source/7_1_release_notes.md | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/guides/source/7_1_release_notes.md b/guides/source/7_1_release_notes.md index 05bc02501d25..597661707511 100644 --- a/guides/source/7_1_release_notes.md +++ b/guides/source/7_1_release_notes.md @@ -621,6 +621,25 @@ Please refer to the [Changelog][active-record] for detailed changes. * Add modern, performant defaults for `SQLite3` database connections. +* Allow specifying where clauses with column-tuple syntax. + + ```ruby + Topic.where([:title, :author_name] => [["The Alchemist", "Paul Coelho"], ["Harry Potter", "J.K Rowling"]]) + ``` + +* Auto generated index names are now limited to 62 bytes, which fits within the default + index name length limits for MySQL, Postgres and SQLite. + +* Introduce adapter for Trilogy database client. + +* Add `ActiveRecord.disconnect_all!` method to immediately close all connections from all pools. + +* Add PostgreSQL migration commands for enum rename, add value, and rename value. + +* Add `ActiveRecord::Base#id_value` alias to access the raw value of a record's id column. + +* Add validation option for `enum`. + Active Storage --------------