Rails7

Rails 7 Schema Dump Path Config

Schema dumps can now be toggled and dump filepaths can be set for individual database shards.

Rails 7 allows permitting numeric params

Rails 7 eliminates the issue of permitting nested hash. Now required attributes can be permitted by calling the permit method directly on the parent hash.

Rails 7 only_numeric Validator Option

With Rails 7, only_numeric option can be used for the numericality validator.

Rails 7 Raises UnsafeRedirectError

Now unsafe redirects raise a UnsafeRedirectError instead of an ArgumentError.

Rails 7 Nested Attributes for delegated_type

With Rails 7, accepts_nested_attributes_for can be used for delegated_type

Rails 7 Auto inverse_of Detection

This update ensures that "inverse_of" takes into consideration the relevant scope when calculating the object to store in memory.

Rails 7 PostgreSQL Generated Columns

Rails 7 now adds support for generated (virtual) columns to the PostgreSQL adapter that has been available since PSQL v12.

Rails 7 Plain Text for Nested Fields

Plain text rendering of nested fields now reserves indentation.

Rails 7 PostgreSQL Custom Enum Types

With Rails 7, use create_enum to add a new enum type and t.enum to add a column.

Using jsbundling-rails Gem in Rails 7

JSBundling provides a flexible way of using different Javascript bundlers