I have the three database models: "seller", "client" and "account". A
seller may have many clients and many accounts, but I would like to
add the constraint that given a seller and a client, only one account
may exist between them.
Is there a way to express this contraint using ActiveRecord relations?
Thanks in advance,