rails changelog


Hey there, code wranglers! We've got some updates that will make your coding life a tad bit easier and a whole lot safer. Let's dive into the latest changes:

Bugfixes

  • Security Boost with Trix Update: We've bumped Trix to version 2.1.14, which includes an upgrade to DOMPurify 3.2.5. This squashes the pesky vulnerability CVE-2025-26791, keeping your application secure and sound. πŸ”’

  • Typo Tamer: Fixed a minor typo in schema_statements.rb. While it might be a small fix, it's the little things that count in making the codebase spick and span! πŸ“

Improvements

  • Custom Database Handling in Parallel Tests: You can now opt out of Rails' parallel database creation when running tests. This gives you the freedom to handle databases your way, by setting parallelize_databases to false. But be careful, skipping automatic database creation might lead to deadlocksβ€”so plan accordingly! πŸš€

  • Active Record Querying Guide Polish: We've spruced up the Active Record Querying guide, clarifying language and fixing some grammar gremlins. Now, it's easier than ever to get the hang of Active Record querying! πŸ“˜

  • Linting Love: Our OCD kicked in, and we added some missing parentheses in activerecord/lib/active_record/associations.rb. This tweak aligns with Ruby conventions, making the code cleaner and more consistent. 🌟

Happy coding, and may your bugs be few and your features many! πŸŽ‰

Included Commits

2025-04-27T01:01:30 See commit

This commit focuses on enhancing the clarity and readability of the Active Record Querying guide by refining the language used throughout the document. It addresses minor grammatical issues, ensuring that the content is not only accurate but also easy to understand for users. The adjustments aim to improve the overall quality of the documentation, making it more accessible for developers seeking guidance on Active Record querying practices.

By implementing these changes, the commit contributes to a more polished and professional presentation of the guide, ultimately supporting users in effectively utilizing Active Record in their applications.

Files changed

2025-04-28T15:56:48 See commit

This commit focuses on improving code readability and consistency in the activerecord/lib/active_record/associations.rb file by adding missing parentheses in method calls. The author, working in a separate branch, identified these adjustments as necessary to adhere to their coding standards and preferences, indicating a commitment to maintaining clean code. The changes involve modifying 20 lines of code, with an equal number of additions and deletions, to ensure that method arguments are properly enclosed in parentheses.

The specific modifications include updating various method calls such as Reflection.add_reflection and Builder::HasAndBelongsToMany.new to include parentheses, which enhances clarity and aligns with common Ruby conventions. This patch is intended to be an independent contribution, separate from other ongoing work, allowing for easier integration and review.

Files changed

  • activerecord/lib/active_record/associations.rb
2025-04-28T18:34:38 See commit

This commit introduces the ability to opt out of Rails' default parallel database hooks when running tests. Previously, while developers could add their own hooks to parallel tests, there was no option to bypass Rails' database parallelization, which could limit custom database handling. With this update, users can choose to disable the automatic creation of databases for parallel tests by setting parallelize_databases to false in the parallelize method or by updating the application configuration.

By default, the parallel database handling is enabled, but disabling it allows developers to manage their own database setup within a parallelize_setup block. However, caution is advised, as not creating databases for each process may lead to deadlocks during test execution. If deadlocks occur, developers are encouraged to either increase the number of databases or revise their tests to reduce contention.

Files changed

2025-04-29T08:25:48 See commit

This commit addresses a typographical error found in the schema_statements.rb file. The correction ensures that the code adheres to proper syntax and improves overall readability. By fixing this typo, the commit enhances the quality and maintainability of the codebase, reducing the potential for confusion or errors in future development.

Files changed

2025-04-29T11:07:01 See commit

This commit updates the Trix editor to version 2.1.14, which includes an important security enhancement by upgrading the DOMPurify library to version 3.2.5. This update specifically addresses the vulnerability identified as CVE-2025-26791, ensuring that the application remains secure against potential exploits related to this issue.

The changes made in this commit are part of ongoing efforts to maintain the integrity and safety of the codebase, reflecting a proactive approach to dependency management and security. For further details on the vulnerability and its implications, a reference link to the advisory is provided.

Files changed