Add support for non-standard foreign key name in has_many relationship