Add models' associations between branch and repository