Solution: Customize Your Repo Module

Go over the solution to the Customizie Your Repo problem.

We'll cover the following

Solution

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 1400+ tech skills courses.