Curated list of episodes, bundled to help you on your learning path!
Videos of tech, infrastructure, hardware and software which non-instructional by nature.
Articles around software and tutorials.
Show your love and support while looking fancy.
Got a question or want to chat about a topic? Let's talk!
You could use a UUID for this, but I think that it would probably be a bit overkill.
I would personally just do something like this with SecureRandom.hex (which is part of the ruby core)
before_create :populate_subscriber_id private def populate_subscriber_id begin self.subscriber_id = SecureRandom.hex end while self.class.exists?(subscriber_id: subscriber_id) end