generate-loose-foreign-key generates code that fails linting
The scripts/decomposition/generate-loose-foreign-key
has a couple of issues:
- generates new keys in a random order in the
config/gitlab_loose_foreign_keys.yml
file, when spec/lib/gitlab/database/loose_foreign_keys_spec.rb verifies that they are in alphabetic order; - the name of the test it generates does not comply with the Rubocop rules (
RSpec/ContextWording
).
Edited by Pedro Pombeiro