I'm having trouble conceptualizing a good way to create associations between two different models within my Rails app.
At the moment I have a Person model and a Note model. A person can be the author or the subject of a note. Therefore:
- A person can belong to many notes (as the subject).
- A person can have many notes (as the author).
- A note belongs to one author (person).
- A note can have one subject (person).
I imagine the app needing to display Person profiles, in which we can see all Notes that the Person has written, as well as all Notes written about the Person.
What's the best way to set up this model-association? Directly, or through an intermediate relationship model?
Thanks in advance!