Ruby on Rails

How to use UUID as a primary key in Rails 5.1+ and PostgreSQL