Solution: Customize Your Repo Module

Go over the solution to the Customizie Your Repo problem.

We'll cover the following


We’re going to add a function called newest in the Repo module that takes a table name as an argument and returns the :inserted_at value for the most recently-added record in that table.

Get hands-on with 1200+ tech skills courses.