I have a Client class that has many Invoices. I don\'t want the user to be able to delete a Client unless it has no related invoices so in the Client model, I use: has
has