make sure we tell AR the proper attribute types for SET and BIT fields as well
This commit is contained in:
parent
dd138de8e1
commit
89401acff4
@ -86,8 +86,9 @@ module ActiveRecord
|
||||
private
|
||||
def simplified_type(field_type)
|
||||
return :boolean if Mysql2Adapter.emulate_booleans && field_type.downcase.index(BOOL)
|
||||
return :string if field_type =~ /enum/i
|
||||
return :string if field_type =~ /enum/i or field_type =~ /set/i
|
||||
return :integer if field_type =~ /year/i
|
||||
return :binary if field_type =~ /bit/i
|
||||
super
|
||||
end
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user