adds active record associations