You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
hi @phuibonhoa interesting point, please give me couple of weeks to think about this 🤔. ..I'm bit overwhelmed at the moment with some circumstances . I'll address this ASAP
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 ofbefore_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.The text was updated successfully, but these errors were encountered: