Assign users a random digest time?

Looks right to me.

I think for this it’s safe enough. I understand the go-with-what-you-know approach but Rails gives you lots of protections (making sure stuff gets enforced and tables stay connected and so on).

Glad you got it sorted!