I have some columns that contain a large amount of data (text, etc), and sometimes I am just displaying a summary list of the rows and I don’t want to fetch all that data.
Is there an option to exclude certain columns?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
I don’t believe you can exclude certain columns, but you can have ActiveRecord return only specific columns using the
:selectparameter, e.g.