Ensure only one record has specific value for another associated record | Rails 6.1.4
Wait what? I couldn’t come up with a better title, but for my app for landlords I faced a problem where I don’t want to remove old tenants. I want to store them in a database for future reference. So that leaves me with problem of making sure that only one tenant can have “active” […]