aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib/active_record/connection_adapters/column.rb
diff options
context:
space:
mode:
Diffstat (limited to 'activerecord/lib/active_record/connection_adapters/column.rb')
-rw-r--r--activerecord/lib/active_record/connection_adapters/column.rb6
1 files changed, 4 insertions, 2 deletions
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