No doubt this has been covered but I'll be damned if I can find it.
References appreciated so I can add to my library.
1. I have 3 tables in my problem: changes, environments, comments
2. changes are many-to-many to environments
3. changes has-many comments
Here's the tricky part:
4. environments has-many comments dependent on the current
changes, environments, changes_environments, comments,
How in would one associate comments to an environment according to the
change on which it's called through?