提交 e54d2750 编写于 作者: R Rafael Mendonça França

Merge pull request #18318 from kamipo/stop_passing_the_column_when_quoting_defaults

Stop passing the column to the `quote` method when quoting defaults
......@@ -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.
先完成此消息的编辑!
想要评论请 注册