method
simplified_type
simplified_type(field_type)
private
Hide source
# File activerecord/lib/active_record/connection_adapters/mysql_adapter.rb, line 89 def simplified_type(field_type) return :boolean if MysqlAdapter.emulate_booleans && field_type.downcase.index("tinyint(1)") return :string if field_type =~ /enum/ super end