UUID for all or just select records
Most of the time I'm using like https://github.com/jcypret/hashid-rails so that it's not just a plain database ID in the url.
Check out this for using UUIDs as primary keys: https://pawelurbanek.com/uuid-order-rails
Check out this for using UUIDs as primary keys: https://pawelurbanek.com/uuid-order-rails
I think that a PR has been merged in Rails 6 to fix ordering issue with UUIDs. You just have to add
self.implicit_order_column = "created_at"
to your model. https://github.com/rails/rails/pull/37626Notifications
You’re not receiving notifications from this thread.