TIL, 2017-08-01
.loaded?
to see if an association has been eager loaded.update_column
to not touchupdated_at
field in database.Model.all.each
is different fromModel.all
.- Not that okay in SQL I think. Must subquery.
.loaded?
to see if an association has been eager loaded.update_column
to not touch updated_at
field in database.Model.all.each
is different from Model.all
.