I’m setting up a new Rails project that is a nice front end for a
company’s personnel database with a legacy schema.
Unfortunately, the table that contains all the standard information
(first name, last name, email address) has some 20+ columns, one of
which is a BLOB of a picture of the person.
Loading all this takes a while, when the application really only
needs the first and last names and email address.
Is there a way to tell AR not to load all the columns? I looked
through api.rubyonrails.com and didn’t see anything.
The app will not be making any inserts or updates to the database, so
I don’t have to be concerned about an AR instance having all the data
needed to successfully create a new row without violating a database
constraint (NOT NULL, etc).