Privacy violations in migrations
Closed this issue · 1 comments
wildmaples commented
Problem
Privacy violations in migrations seem to be caught by Packwerk.
We suspect the t.belongs_to(:order)
is what is setting off the violation, as Packwerk thinks it is an active record association.
To get rid of these type of violations, users have been putting this violation in to the deprecated_references.yml
list.
Potential solutions
There may be two solutions:
- change the associations inspector to ignore methods that are not called on an implicit self
- ignore violations in migrations files
exterm commented
We've opted to ignore migration files for now. Let's see if this problem comes up again.