Method: DBDiagram::Domain::Attribute#scale

Defined in:
lib/db_diagram/domain/attribute.rb

#scaleObject

Returns any non-standard scale for this attribute (decimal types only).



142
143
144
145
# File 'lib/db_diagram/domain/attribute.rb', line 142

def scale
  return column.scale.to_i if column.scale != native_type[:scale] and column.scale.respond_to?(:to_i)
  0 if column.precision
end