© Alan Bradburne 2016

Alan Bradburne, Rails 5 Revealed, 10.1007/978-1-4842-1709-2_3

3. Active Record

Alan Bradburne

(1)Reading, UK

Active Record is a vital part of the majority of Rails applications, so it’s great to see that it is constantly being refined, optimized, and improved upon. The Rails 4.2 release brought large performance improvements and Rails 5 improves upon this further still.

It goes without saying that many hundreds of small bug fixes and tweaks have been committed to the latest version of Active Record, but in this chapter, I concentrate on the biggest and most important changes and additions, and I note any relevant fixes.

The Arel OR Condition

Rails 5 adds a very useful or condition to the Active Record Query Interface , equivalent ...

Get Rails 5 Revealed now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.