Rails
Rails 7 Nested Attributes for delegated_type
With Rails 7, accepts_nested_attributes_for can be used for delegated_typeRails 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 Adds update_attribute! Method
While update_attribute was used to bypass validations, update_attribute! now does the same but raises ActiveRecord::RecordNotSaved in case of any errorsRails 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 Timestamps in insert_all
All relevant timestamp columns (`created_at`, `created_on`, `updated_at`, `updated_on`) are now set via ActiveRecord when using mass insertion queries.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.Master Rails Enums: A Complete Guide
A detailed guide on what enums are and how to create, configure, and use them in Ruby on Rails for cleaner, more efficient codePostgreSQL data-types in Rails
With Rails, there are many built-in data types that PostgreSQL supports. It's a great addition to the developer's toolkit!Rails Adds authenticate_by Method
Rails adds `authenticate_by` method that helps mitigate timing-based enumeration attacks.