lib/rubocop/cop/rails/uniq_before_pluck.rb in rubocop-rails-2.7.1 vs lib/rubocop/cop/rails/uniq_before_pluck.rb in rubocop-rails-2.8.0
- old
+ new
@@ -16,9 +16,11 @@
# distinct are added as offenses. This may lead to false positives
# as the cop cannot distinguish between calls to pluck on an
# ActiveRecord::Relation vs a call to pluck on an
# ActiveRecord::Associations::CollectionProxy.
#
+ # This cop is unsafe because the behavior may change depending on the
+ # database collation.
# Autocorrect is disabled by default for this cop since it may generate
# false positives.
#
# @example EnforcedStyle: conservative (default)
# # bad