add conditional to rating association in post model