Protect Your Database IDs in Rails with UUID

"0e212515–68b0–41b8–880a-fa4a9d818af6"
"27279e0a-dbaf-4b67–8323–0260193e5a92"
"311ca64f-1f1e-4360–8ae4–8dff9df1f2da"
Rails.application.config.generators do |g|
g.orm :active_record, primary_key_type: :uuid
end

--

--

--

Software developer and science/tech writer. Python, Ruby on Rails, JavaScript, React/Redux, Java. Fascinated by the amazing stories behind today’s tech.

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

How to create your own CS:GO server?

Multi-Cloud! is it chalk, is it cheese

Quick Set Up- Integrating Flutter App With Firebase

Introduction to Cypress Automation

gRPC Basics Part 2: Rest and Swagger

5 Reasons Why I Think You Should Learn To Program

Why Python is Essential for Business Analysts

How to Parse and Validate a Name in Ruby

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Alyssa Lerner First

Alyssa Lerner First

Software developer and science/tech writer. Python, Ruby on Rails, JavaScript, React/Redux, Java. Fascinated by the amazing stories behind today’s tech.

More from Medium

Working with ruby C extensions on Mac

Dependency Injection

Setting up Emacs for Ruby Programming

Debugging Node JS