[V3] Rails3 compatibility: scm: fix error of ActiveRecord::HasManyThroughCantAssociateThroughHasOneOrManyReflection

Rebased #331.