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

exception when creating a barcode without an id #52

Open
nomaster opened this issue Nov 4, 2017 · 1 comment
Open

exception when creating a barcode without an id #52

nomaster opened this issue Nov 4, 2017 · 1 comment
Assignees
Labels

Comments

@nomaster
Copy link
Member

nomaster commented Nov 4, 2017

when I create a barcode object (on the CLI) without specifying an id, Rails throws an exception. Investigation shows a spurious requirement of the id property in the model file.

@nomaster nomaster added the bug label Nov 4, 2017
@nomaster nomaster self-assigned this Nov 4, 2017
This was referenced Nov 4, 2017
@YtvwlD
Copy link
Member

YtvwlD commented Nov 7, 2017

I'm no expert in how Rails handles IDs.
But from the view of constructing a database, adding artificial IDs to tables if real-world IDs exist is superfluous.
But giving artifical (numeric) IDs to barcodes would be consistent with drinks and users.
This is difficicult.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants