提交 228c6c07 编写于 作者: A Andrew White 提交者: GitHub

Merge pull request #28176 from kamipo/push_valid_type_up_to_abstract_adapter

Push `valid_type?` up to abstract adapter
......@@ -154,8 +154,8 @@ def arel_visitor # :nodoc:
Arel::Visitors::ToSql.new(self)
end
def valid_type?(type)
false
def valid_type?(type) # :nodoc:
!native_database_types[type].nil?
end
def schema_creation
......
......@@ -648,10 +648,6 @@ def strict_mode?
self.class.type_cast_config_to_boolean(@config.fetch(:strict, true))
end
def valid_type?(type)
!native_database_types[type].nil?
end
def default_index_type?(index) # :nodoc:
index.using == :btree || super
end
......
......@@ -376,10 +376,6 @@ def use_insert_returning?
@use_insert_returning
end
def valid_type?(type)
!native_database_types[type].nil?
end
def update_table_definition(table_name, base) #:nodoc:
PostgreSQL::Table.new(table_name, base)
end
......
......@@ -163,7 +163,7 @@ def supports_index_sort_order?
true
end
def valid_type?(type)
def valid_type?(type) # :nodoc:
true
end
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册