I would like to have a customer that has references to two addresses,
a billing address and a shipping address. In a non-rails environment
I would have two keys in the customers table, billing_address_id and
shipping_address_id to reference the addresses. It appears that
ActiveRecord expects the parent id to reside in the child table,
regardless of whether the relationship is one-to-one or one-to-many.
What would the best approach be to persist this type of data
structure? I would prefer to avoid a one-to-many relationship from a
customer to addresses where an address type is used to denote the
shipping or billing address.