# File activerecord/lib/active_record/connection_adapters/abstract/schema_definitions.rb, line 159def value_to_decimal(value)# Using .class is faster than .is_a? and# subclasses of BigDecimal will be handled# in the else clauseifvalue.class ==BigDecimalvalueelsifvalue.respond_to?(:to_d)value.to_delsevalue.to_s.to_dendend