I have a model with active storage set up with has_one_attached and some users have hit submit without adding a file to the form. Before I add a validation to the frontend I want to make sure that the backend will reject a record if it does not have an attached file.
How can I set up a model so it will not save unless an active storage has_one_attached has something in it?