Deleting and Undeleting with Paranoia
Play
7:34 CC

Deleting and Undeleting with Paranoia

#19 Oct 7, 2015 free
When your app is using Paranoia, calling destroy on an ActiveRecord object doesn't actually destroy the database record, but just hides it.

Eager Loading with Goldiloader
Play
3:09 CC

Eager Loading with Goldiloader

#30 May 23, 2016 free
Wouldn't it be awesome if ActiveRecord didn't make you think about eager loading and it just did the "right" thing by default? With Goldiloader it can!

Counter Cache Associations
Play
3:54 CC

Counter Cache Associations

#78 May 1, 2017 free
When displaying a count of records, this will generate extra SQL Queries. Learn how to reduce the number of SQL queries called with counter caching the number of associated records.

Serialized Attributes
Play
12:04 CC

Serialized Attributes

#4 Jul 22, 2015 free
Store multiple attributes and values using a text column. Not for everyday use, but has situations where it can save on the number of columns and/or models needed to accomplish a task.

Annotate
Play
2:56 CC

Annotate

#11 Aug 7, 2015 free
With strong params replacing attr_accessible, a difficulty has arisen with referencing to the structure of your models. With annotate, we can generate the structure of our models in the comments of our models.