Skip to content

Instantly share code, notes, and snippets.

@joho
Created April 3, 2012 23:00
Show Gist options
  • Save joho/2296163 to your computer and use it in GitHub Desktop.
Save joho/2296163 to your computer and use it in GitHub Desktop.
when_john_fucked_up = Time.new(2012, 4, 3, 2) # 2am the 3rd april UTC = roughly when i ran the emails in dev
EmailSubscription.where(:user_id => user_ids_sent_from_dev).map do |email_subscription|
email_subscription.update_attribute(:last_sent_at, when_john_fucked_up)
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment