Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

rails how to use joins

User.joins(:groups).where(groups: {id: 1})
Source by guides.rubyonrails.org #
 
PREVIOUS NEXT
Tagged: #rails #joins
ADD COMMENT
Topic
Name
7+3 =