August 19, 2021
How to configure Rails Active Storage to use UUIDs for database primary keys
Scenario = you'd love to use Active Storage but you need storage blob uri's to be non-guessable. Or, maybe you already have an app that uses UUIDs and you're looking to add ActiveStorage to the application. Read on.... I will assume that you're running Rails v6+ and Postgres v9.1+ that has already been configured to use UUIDs. (You can...
Read more