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.Ruby 3.4 Throws SyntaxError While Passing Block As Argument In Index.
Passing a block as an argument in index to an array throws SyntaxError in Ruby 3.4 as it is no longer allowed.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.Ruby 3.4 Enable frozen_string_literal by default
In Ruby 3.4 string literals in files without a frozen_string_literal comment now behave as if they were frozen.Ruby 3.4, Range#size Now Raises TypeError If The Range Is Not Iterable
Range#size raises TypeError if the begin value of Range is a Float or Rational or Beginless.Ruby 3.4, No More TypeError With **nil As It Is Treated As An Empty Hash.
When double splat ** operator used with nil, it is treated similarly to **{}, which passes no keywords and does not call any conversion methods.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.2