Created
August 16, 2013 21:36
-
-
Save JKring/6253694 to your computer and use it in GitHub Desktop.
writer save time
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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