This Week in Rails

August 30, 2024

Last call for Luminary nominations, SQLite3 full-text search and more!

Hi, it’s Greg. Let’s explore this week’s changes in the Rails codebase.

Last call for Rails Luminary nominations
If you know someone who has contributed to the Rails ecosystem and community with exceptional code, documentation, enthusiasm, or assistance, submit your nomination by September 2nd.

Fix Devcontainer generator with –dev option path error
This pull request has been created because the devcontainer generator with the --dev option failed (rails g devcontainer --dev)(the app generator worked just fine with the flag) due to a path issue.

Strip encrypted file contents
If you accidentally add a newline to the end of an encrypted file (like Rails credentials), the content file will fail to decrypt. This is an easy mistake to introduce through your text editor or a git merge. This change will prevent that from happening by calling strip on the content.

Support custom environments on bin/rails credentials:diff
In some cases/workflows, it may be useful to have credential files that don’t match an environment name (development, production, testing). This was already supported by all the bin/rails credentials:* tooling except credentials:diff, which shows the whole encrypted content of the file.

Add support for SQLite3 full-text search and other virtual tables
SQLite3 full-text search and other virtual tables are now supported in Rails. Previously, adding SQLite3 virtual tables messed up schema.rb, but with this change, virtual tables can safely be added using create_virtual_table.

You can view the whole list of changes here. We had 43 contributors to the Rails codebase this past week!

Until next time!

About This Week in Rails

Your weekly inside scoop of interesting commits, pull requests and more from Rails.