added foreign_key to has_many output