Skip to content

Instantly share code, notes, and snippets.

@gerhard
Created July 21, 2009 13:25
Show Gist options
  • Save gerhard/151326 to your computer and use it in GitHub Desktop.
Save gerhard/151326 to your computer and use it in GitHub Desktop.
def fudge_time
User.record_timestamps = false
u = User.find_by_email(email)
u.updated_at = 11.minutes.ago
u.save
User.record_timestamps = true
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment