made amendment to creation of has_many relationships to fix a problem in rails 3.2 applications