Rails72
BatchEnumerator#destroy_all Returns Count
Rails 7.2 enhances BatchEnumerator#destroy_all to return the count of destroyed records.Rails 7.2 GitHub CI Workflow by Default
All new applications using Rails 7.2 will have GitHub CI workflow by default.Rails 7.2 pluck and pick Accept Hash for Joins
Rails 7.2 lets pluck and pick accept hash values to specify columns from joined tables without raw SQL.Rails 7.2 adds Rubocop by default to new
All new applications using Rails 7.2 will have rubocop gem by default.Rails 7.2 Rate Limiting in Controllers
Rails 7.2 provides in built method rate_limit to define rate limiting rules in the controller itself.Rails 7.2 adds allow_browser to set minimum
Rails 7.2 allows us to set minimum browser version for compatibility.Rails 7.2 Adds Brakeman gem by Default
All new applications using Rails 7.2 will have Brakeman gem by default for static analysis for security vulnerabilities.Rails ErrorReporter#unexpected Method
The new method will report in production but raise in other environments, making it easier to debug.Upsert Respects on_duplicate with unique_by
Upsert would previously not execute the on_duplicate clause if the unique_by constraint found a match. This has been fixed.