Skip to content

Instantly share code, notes, and snippets.

@PabloVallejo
Created December 8, 2014 23:18
Show Gist options
  • Save PabloVallejo/c6f0fcfc3a640260a60b to your computer and use it in GitHub Desktop.
Save PabloVallejo/c6f0fcfc3a640260a60b to your computer and use it in GitHub Desktop.
Query API
# Ordering records in descending order
User.order(email: :desc)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment