edge badge
Methods
I
T
Instance Public methods
infinity(options = {})
# File activerecord/lib/active_record/connection_adapters/postgresql/oid.rb, line 272
def infinity(options = {})
  BigDecimal.new("Infinity") * (options[:negative] ? -1 : 1)
end
type()
# File activerecord/lib/active_record/connection_adapters/postgresql/oid.rb, line 264
def type; :decimal end
type_cast(value)
# File activerecord/lib/active_record/connection_adapters/postgresql/oid.rb, line 266
def type_cast(value)
  return if value.nil?

  ConnectionAdapters::Column.value_to_decimal value
end