Active Record Tricks
Play
11:25 CC

Active Record Tricks

#347 May 1, 2022 free
In this episode, we look at tips and tricks from read only attributes, inserting and upserting (update or insert) records, toggling booleans, and single table inheritance.

Soft Delete with Discard
Play
6:53 CC

Soft Delete with Discard

#249 Jul 5, 2020 free
Soft deletes for ActiveRecord done right.

ActiveRecord Tricks
Play
13:21 CC

ActiveRecord Tricks

#127 Apr 1, 2018 free
In this episode, we look at what would seemingly be simple queries, but are more complex once you start looking into them. Using built in ActiveRecord functions, we can make the queries readable and easy to work with.

UUID in Rails with ActiveUUID
Play
5:11 CC

UUID in Rails with ActiveUUID

#23 Mar 2, 2016 free
Some cases require non-auto incrementing primary keys as well as multiple master writes without id conflicts. With ActiveUUID, we can configure our table's primary key with confidence without added complexity.

ActiveRecord Callbacks
Play
12:26 CC

ActiveRecord Callbacks

#148 Aug 26, 2018 pro
Callbacks are great for quickly tapping into the object life cycle. However, after a model or an application grows, it will become harder to maintain over time. It is better to extract the responsibility and separate the logic.