Skip to content

Instantly share code, notes, and snippets.

@gaurish
Created October 1, 2015 18:18
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 gaurish/be9d29d09162e2213611 to your computer and use it in GitHub Desktop.
Save gaurish/be9d29d09162e2213611 to your computer and use it in GitHub Desktop.
2.2.3 :004 > User.where(id: 523213).to_sql
"SELECT `users`.* FROM `users` WHERE `users`.`id` = 523213"
2.2.3 :005 > User.where(id: [523213]).to_sql
"SELECT `users`.* FROM `users` WHERE `users`.`id` IN (523213)"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment