Articles by Manmeet Singh

Rails 7 allows setting cache expiry, as an absolute timestamp

With the introduction of expires_at to Rails Cache it is now possible to set absolute timestamps for cache expiry.

Rails 7 MySQL adapter improves the security of untyped bound values

MySQL adapter in Rails 7 casts numbers and booleans to string to avoid security vulnerabilities.

Ruby 3.1 introduces pattern matching pin operator against expression

Ruby 3.1 adds support for the expression and range when using the pattern matching pin operator.

Rails 7 allows passing raw SQL as `on_duplicate` value to `#upsert_all`

Rails 7 allow passing raw SQL statements to `on_duplicate` and `returning` option as value to ActiveRecord `#upsert_all` method.