提交 6f137bab 编写于 作者: R Ryuta Kamizono

No need to extract a limit for a boolean type

上级 ba438dbf
......@@ -668,7 +668,7 @@ def initialize_type_map(m) # :nodoc:
register_integer_type m, %r(^smallint)i, limit: 2
register_integer_type m, %r(^tinyint)i, limit: 1
m.alias_type %r(tinyint\(1\))i, 'boolean' if emulate_booleans
m.register_type %r(^tinyint\(1\))i, Type::Boolean.new if emulate_booleans
m.alias_type %r(year)i, 'integer'
m.alias_type %r(bit)i, 'binary'
......
......@@ -38,10 +38,6 @@ def schema_type(column)
end
end
def schema_limit(column)
super unless column.type == :boolean
end
def schema_precision(column)
super unless /time/ === column.sql_type && column.precision == 0
end
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册