Rails
ActiveRecord::Relation#order Adds Support For Hash Values In Rails 7.2.
With Rails 7.2, ActiveRecord::Relation#order supports hash values where keys are table name, value is a hash of key (column name) and value (order direction).PostgreSQL Adapter Now Decodes Columns Of Type Date To Date Instead Of String In Rails 7.2.
Rails 7.2 added a Date decoder to the postgres adapter to type cast dates at the connection level to type cast columns of type date to Ruby Date instead of String.Strict Loading Using :n_plus_one_only Mode Does Not Eagerly Load Child Associations In Rails 7.2.
In Rails 7.2, with strict loading in :n_plus_one_only mode, associations are eagerly loaded and child associations are lazy loaded.Rails 8 adds Kamal by default.
All new applications using Rails 8 will have Kamal by default.Enhancing Data Integrity With validate_foreign_key In Rails
validate_foreign_key validates foreign key constraint and is designed to reduce the impact of adding foreign keys on high-traffic tables in PostgreSQL.Rails Adds GitHub CI Workflow By Default To New Applications
All new applications using Rails 7.2 will have GitHub CI workflow by default.ActiveRecord::Base#pluck adds support for hash values in Rails 7.2
ActiveRecord pluck and pick can accept hash values for specifying columns from Rails 7.2Enhancing Rails Log Output with SQL Query Count
Rails adds SQL query counts to logs, improving developers ability to optimize application performance by providing more detailed data on database interactionsRails 7.2 adds Rubocop by default to new applications
All new applications using Rails 7.2 will have rubocop gem by default.Rails 7.2 Adds Rate Limiting to Action Controller
Rails 7.2 provides in built method rate_limit to define rate limiting rules in the controller itself.