Skip to content

Instantly share code, notes, and snippets.

@yyalim
Last active August 29, 2015 14:24
Show Gist options
  • Save yyalim/752c872dc097bca6c731 to your computer and use it in GitHub Desktop.
Save yyalim/752c872dc097bca6c731 to your computer and use it in GitHub Desktop.
# SELECT *
# FROM people
# WHERE name = 'francais' collate utf8_bin;
#
# This is the active record equivalent of MySQL query above.
Person.where("name = :name collate utf8_bin", name: "francis")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment