From 7cb3e8b8efb193c13281c0d6c0354bbcc91c3b8e Mon Sep 17 00:00:00 2001 From: Ryuta Kamizono Date: Wed, 10 Apr 2019 12:16:35 +0900 Subject: Accidentally lost `comment` in `Column#==` and `Column#hash` Refer #35875. --- activerecord/lib/active_record/connection_adapters/column.rb | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'activerecord/lib/active_record') diff --git a/activerecord/lib/active_record/connection_adapters/column.rb b/activerecord/lib/active_record/connection_adapters/column.rb index 21c5e43ea0..279d0b9e84 100644 --- a/activerecord/lib/active_record/connection_adapters/column.rb +++ b/activerecord/lib/active_record/connection_adapters/column.rb @@ -68,7 +68,8 @@ module ActiveRecord sql_type_metadata == other.sql_type_metadata && null == other.null && default_function == other.default_function && - collation == other.collation + collation == other.collation && + comment == other.comment end alias :eql? :== @@ -79,7 +80,8 @@ module ActiveRecord sql_type_metadata.hash ^ null.hash ^ default_function.hash ^ - collation.hash + collation.hash ^ + comment.hash end end -- cgit v1.2.3