Displaying 1 result from an estimated 1 matches for "foreign_key_to".
2012 Sep 21
4
Good resource for the history of activerecord association method naming?
...ng that many_to_many is not used because there are a few
different ways of doing that via has_many :through and
has_and_belongs_to_many, and to me belongs_to seems reasonable since it is
a model associated with a child table that has a foreign key to a parent
table, however that could have been foreign_key_to or similar to eliminate
confusion, I guess, though maybe that makes the name less flexible and more
tied to relational DB terms? Maybe having some aliases would make sense, I
don''t know. I''m kind of used to it all now, but maybe there is some way it
could all be clearer.
Does...