Safety checks to prevent database writes, cache performance boost and more

Goodbits

Cheers for the first day of December! This is Kir bringing you the latest news from the Rails world.


Use raw time string from DB to generate ActiveRecord#cache_version

The PR skips unnecessary attribute casting when generating cache version, which gives a great performance boost for apps that rely on caching.


Add ability to block writes to a database

A brand new while_preventing_writes method on Active Record connection allows you to add safety checks for code that’s not supposed to write to a database.


Bump the minimum version of PostgreSQL to 9.3

PostgreSQL 9.1 and 9.2 have been declared EOL more than a year ago.

28 people contributed to Rails last week. If you want to be part of that, check out the issues list.
Until next time!

This Week in Rails · 30 N Racine #200 · Chicago IL 60607 · USA
Unsubscribe
> View in browser