We recently upgraded our Rails 4.2 application to Rails 5.0 (we'll upgrade to Rails 5.2 eventually).
With Rails 4.2 we were using UUID gem that we are not using with Rails 5.
Currently, the problem Rails 5/Postgres is that it generates in UUIDs with hyphens (sd5e1bcd-da49-43c6-bc87-381232e0101b). From Postgre perspective it treats UUIDs with and without hyphens equally. However, we have integration with the external applications where we refer UUIDs that have UUIDs without hyphens for existing records. For that, we need Rails to have UUIDs always without hyphens.
The question is, is it possible on Rails/PG gem level to always return the UUIDs without hyphens?
Thanks