Ruby's standard library and Rails's PostgreSQL adapter use by default version 4 UUIDs. This can be changed in Rails migrations via:
default: 'uuid_generate_v1()'
param whereas Ruby's stdlib only supports version 4.
Another interesting difference is in the implementations: