-
-
Notifications
You must be signed in to change notification settings - Fork 503
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
refactor: remove item seeding (models med) #4222
refactor: remove item seeding (models med) #4222
Conversation
16d65cf
to
9b29eff
Compare
9b29eff
to
4549e83
Compare
8578b1f
to
441a770
Compare
585fd3f
to
b238b45
Compare
end | ||
# TODO: do negative numbers make sense here? | ||
# it { should validate_numericality_of(:quota).is_greater_than_or_equal_to(0).allow_nil } | ||
it { should validate_numericality_of(:quota).allow_nil } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
do negative numbers make sense here?
it { should validate_numericality_of(:quota).is_greater_than_or_equal_to(0).allow_nil }
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I see no reason you'd have negative quota values. If it doesn't already validate for that, we could make it a GFI.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It does not so probably a GFI
medium models
b238b45
to
2846a5f
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks amazing! Tiny nits.
05a7500
to
c1b104e
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good!
@elasticspoon: Your PR |
Related to #4199
This is the model changes that require a bit more work.
There are some refactors with changing validations to shoulda matchers, largely just find and replace.
Also contains all itemizables.
Type of change
How Has This Been Tested?
Passes current suite