Displaying 1 result from an estimated 1 matches for "items_locations".
2007 Oct 14
0
naming join models for has_many :through
Hi,
I''m having trouble naming my join models. The tables in question are:
- stores (list of company branches / stocking locations)
- items (inventory items)
- items_stores (item xyz is stocked by store_id 7, their re-order
point is 10, their sales price $27.50)
- items_locations (store_id 7 keeps part xyz on shelf B252)
While I believe items_stores would be proper naming for a HABTM type
relationship, everything I''ve found says to make up a new name for
has_many :through join models.
I''d be willing to change any of these names if someone can suggest an...