class ActiveRecord::ConnectionAdapters::SQLServer::Type::DecimalWithoutScale
Public Instance Methods
Source
# File lib/active_record/connection_adapters/sqlserver/type/decimal_without_scale.rb, line 8 def sqlserver_type "decimal".yield_self do |type| type += "(#{precision.to_i},0)" if precision type end end
Source
# File lib/active_record/connection_adapters/sqlserver/type/decimal_without_scale.rb, line 15 def type_cast_for_schema(value) value.is_a?(BigDecimal) ? value.to_s : value.inspect end