Same as in ActiveRelationTrait