-
Notifications
You must be signed in to change notification settings - Fork 81
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
Unique constraint on multiple fields #78
Comments
Let me make sure I'm understanding your request correctly. If you had a model, |
exactly! |
You can do it straightforward. Just set it in the schema, or the constructor. :) |
how? can you provide me an example please? |
It's in the docs. (README)
|
i know it's possible to define in model that field is unique. Is it possible to do so over multiple columns/fields?
Thanks
Peter
The text was updated successfully, but these errors were encountered: