added activerecord associations to models