Found 2 bookmarks
Custom sorting
UUID Primary Key in Rails 6 with PostgreSQL and ActiveRecord
UUID Primary Key in Rails 6 with PostgreSQL and ActiveRecord
UUID also known as GUID is an alternative primary key type for SQL databases. It offers some non-obvious advantages compared to standard integer-based keys. Rails 6 release fresh out of beta introduces a new feature in ActiveRecord that makes working with UUID primary keys more straightforward. In this tutorial, we will dive deep into UUIDs with all their cons and pros.
·pawelurbanek.com·
UUID Primary Key in Rails 6 with PostgreSQL and ActiveRecord