Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
posts = Post.all
Parallel.each(posts, :in_processes => 10) do |post|
# Reconnect to prevent errors with Postgres
post.title = post.title.downcase!
# Goes with
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment