search for: main_address_id

Displaying 1 result from an estimated 1 matches for "main_address_id".

Did you mean: email_address_id
2006 Apr 08
2
one-to-one relationship confusion
...sses are exclusively referenced by parent objects and a many-to-many association is not appropriate. Ideally I would like the customers table to use a shipping_address_id and a billing_address_id to reference the aggregate addresses. For illustration purposes, another object, company might have a main_address_id, an after_hours_address_id and a weekend_address_id. In order to keep the keys in the customer table the belongs_to statements are in the customer model and the has_one statement is in the address model. This creates the structure I am after, but not the behavior. The customer is really the pare...