diff options
author | Yorick Peterse <yorickpeterse@gmail.com> | 2017-06-02 15:29:30 +0300 |
---|---|---|
committer | Yorick Peterse <yorickpeterse@gmail.com> | 2017-06-07 18:36:55 +0300 |
commit | 5819ca1a249d1daf3b4feb655c217c98a1b70225 (patch) | |
tree | 799459af23e425921e5368693ee3d0a258c426bb /rubocop/rubocop.rb | |
parent | 44d65c36dbe2f38eacb1858a99996c025b755937 (diff) |
Added Cop to blacklist polymorphic associations
One should really use a separate table instead of using polymorphic
associations.
See https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/11168 for
more information.
Diffstat (limited to 'rubocop/rubocop.rb')
-rw-r--r-- | rubocop/rubocop.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/rubocop/rubocop.rb b/rubocop/rubocop.rb index 22815090508..dae30969abf 100644 --- a/rubocop/rubocop.rb +++ b/rubocop/rubocop.rb @@ -2,6 +2,7 @@ require_relative 'cop/custom_error_class' require_relative 'cop/gem_fetcher' require_relative 'cop/activerecord_serialize' require_relative 'cop/redirect_with_status' +require_relative 'cop/polymorphic_associations' require_relative 'cop/migration/add_column' require_relative 'cop/migration/add_column_with_default_to_large_table' require_relative 'cop/migration/add_concurrent_foreign_key' |