Answers for "rails distinct"

0

rails distinct

# Here, I am plucking student_id and student_grade based on the distinct student_grade records
StudentResult.distinct(:student_grade).pluck(:student_id, :student_grade)
Posted by: Guest on July-14-2021

Browse Popular Code Answers by Language