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

Rebased #324.