Skip to content

Commit 7cb3e8b

Browse files
committed
Accidentally lost comment in Column#== and Column#hash
Refer rails#35875.
1 parent a35a760 commit 7cb3e8b

File tree

1 file changed

+4
-2
lines changed
  • activerecord/lib/active_record/connection_adapters

1 file changed

+4
-2
lines changed

activerecord/lib/active_record/connection_adapters/column.rb

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,8 @@ def ==(other)
6868
sql_type_metadata == other.sql_type_metadata &&
6969
null == other.null &&
7070
default_function == other.default_function &&
71-
collation == other.collation
71+
collation == other.collation &&
72+
comment == other.comment
7273
end
7374
alias :eql? :==
7475

@@ -79,7 +80,8 @@ def hash
7980
sql_type_metadata.hash ^
8081
null.hash ^
8182
default_function.hash ^
82-
collation.hash
83+
collation.hash ^
84+
comment.hash
8385
end
8486
end
8587

0 commit comments

Comments
 (0)