Verify or fix usages of ActiveRecord:Base in Pseudonymizer
We need to fix instances of using connection (or other incompatible methods) directly on ActiveRecord::Base to support multiple databases. Using the wrong DB connection when executing DB queries can lead to application failures or data corruption.
We have a number of these offenses in a rubocop todo file.
Specifically, we have a number of offenses from pseudonymizer code. To resolve this, we should ensure all of these files have been checked and offenses removed. If for some reason the offense should remain ignored, add a comment to to the todo file stating it has been checked.
Our documentation shows this tool is deprecated. If we don't use it internally, we should be able to ignore these offenses, and add a comment to the todo file to indicate that.
-
ee/lib/pseudonymizer/dumper.rb -
ee/lib/pseudonymizer/pager.rb -
ee/spec/lib/pseudonymizer/dumper_spec.rb