Disallow the use of X.establish_connection
This adds a RuboCop rule that disallows the usage of `SomeModel.establish_connection`, as this pattern can break database configurations and slows down the tests. See https://gitlab.com/gitlab-org/gitlab/-/issues/338653 for more information.
Showing
Please register or sign in to comment