equivalent / equivalent/public_uid
Allow calling generate_uid on before_validation
Open
- Dominant language
- Ruby
- Stars
- 74
- Forks
- 8
- PR merge metrics
- No merged PRs in 30d
Description
It would be nice to be able to set validations on the unique id column. Letting someone set the callback to be `before_validation` instead of `before_create` means you are guaranteed to have the unique ID set so that validations can be run. Likewise, it makes it easier to backfill or update records that already exist since you can simply set the column to nil before saving to update it.
Right now since it is on `before_create` there is no way to have validations on the column.
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.