Skip to content
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

Uniqueness Violated - Crop Name and Crop Variety #205

Open
matjames007 opened this issue Dec 4, 2015 · 0 comments
Open

Uniqueness Violated - Crop Name and Crop Variety #205

matjames007 opened this issue Dec 4, 2015 · 0 comments
Assignees
Milestone

Comments

@matjames007
Copy link
Contributor

The combination of cr_crop_name and cr_crop_variety should be unique in the CropSchema.
Similar to the demand and commodities in transaction table:

TransactionSchema.index({de_demand: 1, co_commodity: 1}, {unique: true});
@matjames007 matjames007 self-assigned this Dec 4, 2015
@matjames007 matjames007 added this to the 2.0 milestone Dec 4, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant