change has_and_belongs_to_many to has_many :through and add unique validation and auditing to join table
there is currently no validation when the models use has_and_belongs_to_many
This issue is a result of needing to generate validation errors and audit trail for https://github.com/theforeman/foreman/pull/1454
#4 Updated by Joseph Magen over 4 years ago
- Status changed from Ready For Testing to New
Moving status back to New. PR https://github.com/theforeman/foreman/pull/1773 is not complete but it's a start.
I don't recall what could cause two identical rows in the join table. I see this task as a "nice to have" and not "must have" as it changes a lot of code with little upside unless there is a real pain there something is causing duplicate rows.