Skip to content

Instantly share code, notes, and snippets.

@peterdenham
Created June 7, 2019 19:23
Show Gist options
  • Save peterdenham/98e69dc72c3e6f66558e8ed554077cd1 to your computer and use it in GitHub Desktop.
Save peterdenham/98e69dc72c3e6f66558e8ed554077cd1 to your computer and use it in GitHub Desktop.
Join on active record models
Quota.select('quota.*, reports.name').joins(:report)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment