aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib/active_record/type.rb
Commit message (Collapse)AuthorAgeFilesLines
* Fix undesirable RangeError by Type::Integer. Add Type::UnsignedInteger.Ryuta Kamizono2014-12-121-0/+1
|
* Treat strings greater than int max value as out of rangeSean Griffin2014-10-311-0/+1
| | | | | | | | | | | Sufficiently large integers cause `find` and `find_by` to raise `StatementInvalid` instead of `RecordNotFound` or just returning `nil`. Given that we can't cast to `nil` for `Integer` like we would with junk data for other types, we raise a `RangeError` instead, and rescue in places where it would be highly unexpected to get an exception from casting. Fixes #17380
* Allow YAML serialization when using TZ aware attributesSean Griffin2014-09-171-0/+1
|
* Detect in-place changes on mutable AR attributesSean Griffin2014-06-131-0/+1
| | | | | | We have several mutable types on Active Record now. (Serialized, JSON, HStore). We need to be able to detect if these have been modified in place.
* Refactor serialized types to be partially defined as custom propertiesSean Griffin2014-05-291-0/+1
| | | | | | | Many of the methods defined in `AttributeMethods::Serialization` can be refactored onto this type as well, but this is a reasonable small step. Removes the `Type` class, and the need for `decorate_columns` to handle serialized types.
* Move types to the top level `ActiveRecord` namespaceSean Griffin2014-05-271-0/+18
`ActiveRecord::ConnectionAdapters::Type::Value` => `ActiveRecord::Type::Value`