Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR RUBY

rails active record to fetch only list of ids

Language.where(short_code: short_codes.flatten).pluck(:id)
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #rails #active #record #fetch #list #ids
ADD COMMENT
Topic
Name
3+9 =