Rails3: scm: git: fix error of ActiveRecord::HasManyThroughCantAssociateThroughHasOneOrManyReflection in functional test