Created
May 20, 2019 21:01
-
-
Save Prorok64b/03bcff561a44a755c5402f3e96723772 to your computer and use it in GitHub Desktop.
includes example
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
User.includes(:posts) | |
# nested associations | |
User.includes(posts: [:comments, :likes]) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment