For the past two weeks, I have been working on the active_record_uuid gem. It’s a nice experience because I have learnt quite a lot even though it’s a small gem. This gem provides uuid
support to active_record model. It allows you to store uuid
as binary
, base64
, hexdigest
, and string
. Actually, this gem is well-tested (55 examples). Fork me or create issue on GitHub if you see a bug.
The good thing about this gem is that you query the data by using a plain uuid
string while you store as binary
, base64
, hexdigest
, or string
.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 |
|
Be sure to check out other options to use at https://github.com/chamnap/active_record_uuid/blob/master/README.md.