Improved error handling.
This commit is contained in:
parent
47f73d91e3
commit
ca42df1ef6
|
@ -1059,6 +1059,7 @@ check string/varchar size and cut them if needed
|
||||||
next if self[ attribute[0] ].class != String
|
next if self[ attribute[0] ].class != String
|
||||||
next if self[ attribute[0] ].empty?
|
next if self[ attribute[0] ].empty?
|
||||||
column = self.class.columns_hash[ attribute[0] ]
|
column = self.class.columns_hash[ attribute[0] ]
|
||||||
|
next if !column
|
||||||
limit = column.limit
|
limit = column.limit
|
||||||
if column && limit
|
if column && limit
|
||||||
current_length = attribute[1].to_s.length
|
current_length = attribute[1].to_s.length
|
||||||
|
|
Loading…
Reference in a new issue