Skip to content

Instantly share code, notes, and snippets.

@taf2
Created May 9, 2014 13:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save taf2/785b1a8d53ae4a041963 to your computer and use it in GitHub Desktop.
Save taf2/785b1a8d53ae4a041963 to your computer and use it in GitHub Desktop.
# query.count # rails 4.1 -> select count(distinct(texts.id), texts.*) from texts
# query.count # rails 4.0 -> select count(distinct(texts.id)) from texts
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment