Say there are 2 models, Teacher and Subject.Association from Teacher to Subject can be has_one or has_manyThe model Subject has an attribute subject_name. So how can you pluck all the subject_name that belongs to at least one teacher?
1. For has_one:
1. For has_many: