提交 abab2bf4 编写于 作者: R Ryuta Kamizono

Stop passing the column to the `quote` method when quoting defaults

Related the commit 8f8f8058.
上级 4591b0fc
......@@ -56,7 +56,8 @@ def quote_default_value(value, column) #:nodoc:
if column.type == :uuid && value =~ /\(\)/
value
else
quote(value, column)
value = column.cast_type.type_cast_for_database(value)
quote(value)
end
end
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册