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

box model crud #72

Merged
merged 6 commits into from
Jul 27, 2019
Merged

box model crud #72

merged 6 commits into from
Jul 27, 2019

Conversation

svileshina
Copy link
Collaborator

@svileshina svileshina commented Jul 26, 2019

Co-authored-by: Robb Kidd [email protected]
Co-authored-by: Mae Beale [email protected]

creating box model crud

Co-authored-by: Robb Kidd <[email protected]>
Co-authored-by: Mae Beale <[email protected]>
Copy link
Member

@robbkidd robbkidd left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

tenor-94968427

Copy link
Member

@robbkidd robbkidd left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

tenor-38617954

Oops. We need to alias the referenced models in the Box model class, too.

belongs_to :design_reviewed_by
belongs_to :assembled_by
belongs_to :shipped_by
belongs_to :shipping_payment
Copy link
Collaborator

@h-m-m h-m-m Jul 26, 2019

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

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Right!

@robbkidd robbkidd changed the title box model crud 🚧WIP: box model crud Jul 26, 2019
@robbkidd robbkidd changed the title 🚧WIP: box model crud box model crud Jul 27, 2019
Copy link
Member

@robbkidd robbkidd left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

tenor-244381438

Copy link
Collaborator

@gabezurita gabezurita left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great!

@h-m-m h-m-m merged commit abc1714 into develop Jul 27, 2019
@robbkidd robbkidd deleted the box-model branch July 27, 2019 14:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants