aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord
diff options
context:
space:
mode:
Diffstat (limited to 'activerecord')
-rw-r--r--activerecord/lib/active_record/connection_adapters/column.rb5
1 files changed, 5 insertions, 0 deletions
diff --git a/activerecord/lib/active_record/connection_adapters/column.rb b/activerecord/lib/active_record/connection_adapters/column.rb
index cdbcca3728..01f06af348 100644
--- a/activerecord/lib/active_record/connection_adapters/column.rb
+++ b/activerecord/lib/active_record/connection_adapters/column.rb
@@ -64,6 +64,11 @@ module ActiveRecord
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: