Skip to content
This repository has been archived by the owner on Apr 17, 2018. It is now read-only.

Remix 1 #1

Open
mhayes opened this issue Aug 29, 2010 · 0 comments
Open

Remix 1 #1

mhayes opened this issue Aug 29, 2010 · 0 comments

Comments

@mhayes
Copy link

mhayes commented Aug 29, 2010

I believe that the ability to remix 1 should behave differently. According to the documentation from the remix 1, :addressables example found on the README the Location being remixed with 1 address does the following:

  • Creates a class called LocationAddress
  • Duplicates the properties of Addressable within LocationAddress
  • Creates a table called location_addresses
  • Creates Location#location_addresses accessor

However when inspecting the database it appears that multiple addresses can technically be applied to 1 location. I'm proposing the following behavior:

  • In the location_addresses table there should be a unique constraint placed on location_id
  • Instead of a Location#location_addresses accessor, it should be a singular Location#location_address or Location#address accessor
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant