diff --git a/activerecord/lib/active_record/connection_adapters/column.rb b/activerecord/lib/active_record/connection_adapters/column.rb index cdbcca3728306fbbd347da220d52c709ad7558b1..01f06af34841d09d2e7f28c11f698ff8b6c5ff83 100644 --- a/activerecord/lib/active_record/connection_adapters/column.rb +++ b/activerecord/lib/active_record/connection_adapters/column.rb @@ -64,6 +64,11 @@ def ==(other) other.sql_type == sql_type && other.null == null end + alias :eql? :== + + def hash + [self.class, name, default, cast_type, sql_type, null].hash + end end end # :startdoc: