为用户分配随机的摘要时间?

非常感谢您的指导。我决定通过 Rails 来实现太难了,所以我找到了通过 postgres 来实现的方法。这是我的解决方案:

./launcher enter app
su - postgres
psql discourse
UPDATE user_stats SET digest_attempted_at = digest_attempted_at - interval '1' DAY * random();