提交 79437642 编写于 作者: S Sean Griffin

Implement #== for column

We shouldn't rely on reference equality of these objects in tests
上级 52153234
......@@ -56,6 +56,14 @@ def with_type(type)
clone.instance_variable_set('@cast_type', type)
end
end
def ==(other)
other.name == name &&
other.default == default &&
other.cast_type == cast_type &&
other.sql_type == sql_type &&
other.null == null
end
end
end
# :startdoc:
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册