Articles by Rakesh Khicher

Rails 7 adds database-specific setup and reset tasks for multi DB configurations

For multi DB Rails applications starting with Rails 7, we can now setup and reset a particular database.

Rails 7 adds `Enumerable#in_order_of` to put an enumerable in a certain order by a key.

With the addition of the `in_order_of` method, we can order enumerable based on the provided series.

Rails support bulk insert/upsert on relation

Rails 6.1 has added support for bulk insert/upsert on relation to preserve scope values.

Rails adds support for annotating HTML output with template file names.

Rails 6.1 has added support for adding HTML comments to the rendered output indicating where each template begins and ends.