@charlag Mastodon::Snowflake takes care of it, there's a SQL function that's used for new rows automatically and there's a Ruby function for generating such IDs with an older timestamp.