Need to update books_count column for authors somehow

DAN wrote:

Since I've been developing my code and data at the same time my count
columns are off. Some say 0 (the default) instead of the actual.

You can have a small non schema changing migration, that loops over each
author and does:

author.update_attribute(:books_count, author.books.size)