Episodes
Single Table Inheritance
Play
8:33

Single Table Inheritance

#97 Sep 10, 2017 free
Learn to use single table inheritance to allow multiple classes to be stored in the same database table.

Counter Cache Associations
Play
3:54

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.

Eager Loading with Goldiloader
Play
3:09

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!

Deleting and Undeleting with Paranoia
Play
7:34

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.

Annotate
Play
2:56

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.