Displaying 1 result from an estimated 1 matches for "addresses_shop".
Did you mean:
addresses_shops
2005 Nov 28
1
has_one / HABTM relationship overlap - please advise
1. I have a few tables: ''users'', ''shops'', ''addresses'', and ''pictures''.
2. Users and Shops will both use the addresses and pictures tables. I have
created several mapping tables:
addresses_shops
pictures_shops
addresses_users
pictures_users
3. Users CAN have many addresses and pictures (simple HABTM), but...
4. I''d like it if Shops _only_ could have one of each. Since both users and
shops are accessing addresses and pictures, I can''t exactly use a simple
''has...