update has many definition to use new format to avoid deprecation warnings in rails 4