-
-
Notifications
You must be signed in to change notification settings - Fork 82
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
box model crud #72
box model crud #72
Conversation
Co-authored-by: Robb Kidd <[email protected]> Co-authored-by: Mae Beale <[email protected]>
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.
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.
app/models/box.rb
Outdated
belongs_to :design_reviewed_by | ||
belongs_to :assembled_by | ||
belongs_to :shipped_by | ||
belongs_to :shipping_payment |
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 pulled this locally and could not #create!
a box with a nil in any of :designed_by :design_reviewed_by, :assembled_by, :shipped_by, or :shipping_payment. These should all be nullable
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.
Right!
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.
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 great!
Co-authored-by: Robb Kidd [email protected]
Co-authored-by: Mae Beale [email protected]
creating box model crud