Ruby on Rails: UUID as your ActiveRecord primary key Sometimes, using the good old ‘auto increment’ from your database just isn’t good enough. If you really require that all your objects have unique ID, even across systems and different databases there’s only one way go: UUID or Universally Unique IDentifier. A UUID is generated in such a way that every generated UUID in the world is unique. For e

