Class: ActiveRecord::Type::DecimalWithoutScale
- Inherits:
-
ActiveModel::Type::BigInteger
- Object
- ActiveModel::Type::BigInteger
- ActiveRecord::Type::DecimalWithoutScale
- Defined in:
- lib/active_record/type/decimal_without_scale.rb
Overview
:nodoc:
Instance Method Summary collapse
Instance Method Details
#type ⇒ Object
6 7 8 |
# File 'lib/active_record/type/decimal_without_scale.rb', line 6 def type :decimal end |
#type_cast_for_schema(value) ⇒ Object
10 11 12 |
# File 'lib/active_record/type/decimal_without_scale.rb', line 10 def type_cast_for_schema(value) value.to_s.inspect end |