commit
0cf3092e60
@ -540,7 +540,7 @@ def type_to_sql(type, limit = nil, precision = nil, scale = nil) #:nodoc:
|
|||||||
column_type_sql << "(#{precision})"
|
column_type_sql << "(#{precision})"
|
||||||
end
|
end
|
||||||
elsif scale
|
elsif scale
|
||||||
raise ArgumentError, "Error adding decimal column: precision cannot be empty if scale if specified"
|
raise ArgumentError, "Error adding decimal column: precision cannot be empty if scale is specified"
|
||||||
end
|
end
|
||||||
|
|
||||||
elsif (type != :primary_key) && (limit ||= native.is_a?(Hash) && native[:limit])
|
elsif (type != :primary_key) && (limit ||= native.is_a?(Hash) && native[:limit])
|
||||||
|
Loading…
Reference in New Issue
Block a user