Im wondering, is there a way to set a limit/maximum for the number of
objects saved in a has_many relationship? For example, I have Users
that have a has_many relationship with the model BaseballCards. Is
there a built-in model function to make it so that a User cannot add
more than 1000 baseball cards?
If not, what would be the best way to go about setting this
restriction? It seems one could add a baseball_card_total column to
the users table and keep adjusting this column accordingly or perform
a search for the total before every save?