:repositories may need to be changed to something like
```
child :repositories => :repositories
  attributes :id, :name
end
```