Skip to content

Instantly share code, notes, and snippets.

@roalcantara
Created May 31, 2017 00:02
Show Gist options
  • Select an option

  • Save roalcantara/aace53731e6b945297bc39ec91b6789e to your computer and use it in GitHub Desktop.

Select an option

Save roalcantara/aace53731e6b945297bc39ec91b6789e to your computer and use it in GitHub Desktop.
Rails3+ > Where > Between > Date
User.where(created_at: Time.current.beginning_of_day..Time.current.end_of_day).count
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment