Normalizes

Episode #495 by Teacher's Avatar David Kimura

Summary

In this episode, we'll have a look at various approaches to data consistency and why it could be important to normalize the data. We'll look at and old approach and a more current one along with the caveats associated with each of them.
rails data model 8:20

Chapters

  • Introduction (0:00)
  • Setting up the scaffold (0:56)
  • Using callbacks to normalize the data (1:20)
  • Demo on the callbacks (2:05)
  • Triggering callbacks on existing data (2:26)
  • Warning about callbacks (3:33)
  • Using normalizes (4:00)
  • A gotcha with normalizes (4:57)
  • Triggering normalizing functionality (6:08)
  • Note about callbacks vs normalizes (6:46)
  • Chaining methods (6:58)
  • Final thoughts (7:52)
Student & Teacher
$ 9 /mo

Valid School Email Required

Same Access as Pro

Subscribe Now
Pro Monthly
$ 19 /mo

Access to Pro Episodes

Invite to Slack Channel

Priority Suggestions

Ad Free

Subscribe Now
Pro Annual
$ 190 /yr

Access to Pro Episodes

Invite to Slack Channel

Priority Suggestions

Ad Free

Subscribe Now
Teams
$ 57 /mo

3 Users Minimum

$19.00 / user / month

Same Access as Pro

Subscribe to Teams