Skip to content

Instantly share code, notes, and snippets.

@JKring
Created August 16, 2013 21:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save JKring/6253694 to your computer and use it in GitHub Desktop.
Save JKring/6253694 to your computer and use it in GitHub Desktop.
writer save time
Writer.where().each do |w|
start_time = Time.now
w.save!
puts w.id if (Time.now - start_time) > 3
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment