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
The PR #927 for this was closed out (I assume because the author no longer wants to work on it), but the code wasn't too far off from being done. If anyone would like to take the work started there and finish it up in a new PR, we can get this added in.
It would be great if lucky_record could support prefixed KSUID as a primary_key_type.
Currently the only supported types are bare int and UUID.
A modern ID is short, optionally k-sortable and optionally prefixed with an abbreviated model id. Example (from Stripe):
inv_SojvcbC89I7uo5
It would be great if lucky models could be configured to
generate IDs like the above by adding a line such
as this to the model file:
primary_key_type KSUID, prefix: 'inv'
The text was updated successfully, but these errors were encountered: