Skip to content

Instantly share code, notes, and snippets.

@victorbstan
Created March 20, 2012 19:27
Show Gist options
  • Select an option

  • Save victorbstan/2140201 to your computer and use it in GitHub Desktop.

Select an option

Save victorbstan/2140201 to your computer and use it in GitHub Desktop.
Get items created yesterday from a Rails app using AR
FieldUpdate.where("created_at < ?", Date.today)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment