Skip to content
This repository was archived by the owner on Jul 24, 2020. It is now read-only.
This repository was archived by the owner on Jul 24, 2020. It is now read-only.

Serial Number should be unique #296

Closed
@caseywatts

Description

@caseywatts

We should not be able to put in two equipment items with the same serial number

Not sure what the code in the model says but could be something like:
validates_uniqueness_of :serialnumber

Ideally different models can have the same serial number (in case that happens: camera x and laptop y serial numbers are the same), but that's rare. It's okay short-term to have it unique across all items regardless of model.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions