I’m not sure if rails can manage this for you, but in the past when I
have two objects that access the same object I’ve created a tying table
(not sure if this is the right way to say it).
For example, an organization and an individual both can have many
addresses. While I could create an org_addresses and an ind_addresses
table I’d rather not manage two tables of addresses when I could just
create two tying tables.
My tables would look like this:
Org_Addresses (tying table)
Ind_Addresses (tying table)
This would allow me to manage addresses in one place but still be able
to access the individuals and the organizations addresses by using the
How would one go about doing this in rails? I’ve done this many times,
but am new to rails.