-
Notifications
You must be signed in to change notification settings - Fork 276
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Arguments for creates_unique
?
#1035
Comments
As a wise man once said... https://www.youtube.com/watch?v=UaU6NQzEGcg That's really unfortunate. |
Is this worth backporting into 5.2.x? It reminds of me that |
It's a funny one because I don't think it would defy expectations if you know what Regarding backporting, it's tempting, but I'd also like to have reasons for people to want to update to 6.0 ;) |
Yeah, for sure. It makes sense once you know about it... Since there's so much room for confusion, I think should make the syntax more explicit so you can't accidentally end up with unwanted behavior. In 6.0, maybe we require an argument of I'm going to do a quick spike of this -- already have |
That PR is a proposed implementation of the comment above. |
Ooh, we can close this. |
I just started using
ActiveRel.creates_unique
and I thought it would always only result in one relationship, but it only does that if all of the properties that I'm giving are equal to another relationship's properties. It would be nice to be able to say which properties it should match on. Then theActiveRel
code can pull all of the rest out into aON CREATE SET
The text was updated successfully, but these errors were encountered: