set up model has-manys
converted affinities to RAILS 4