Skip to content

Commit ece21c7

Browse files
authored
Merge pull request rails#47946 from sampatbadhe/patch-6
Correct SQL query in where.not docs [ci skip]
2 parents 444df0e + 5c79b0a commit ece21c7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

activerecord/lib/active_record/relation/query_methods.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ def initialize(scope) # :nodoc:
3838
# # SELECT * FROM users WHERE name NOT IN ('Ko1', 'Nobu')
3939
#
4040
# User.where.not(name: "Jon", role: "admin")
41-
# # SELECT * FROM users WHERE NOT (name == 'Jon' AND role == 'admin')
41+
# # SELECT * FROM users WHERE NOT (name = 'Jon' AND role = 'admin')
4242
#
4343
# If there is a non-nil condition on a nullable column in the hash condition, the records that have
4444
# nil values on the nullable column won't be returned.

0 commit comments

Comments
 (0)