aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/cases/column_test.rb
Commit message (Collapse)AuthorAgeFilesLines
* Fix bug when Column is trying to type cast boolean values to integer.Rafael Mendonça França2012-10-291-4/+4
| | | | | | | | | | | This can occur if the user is using :integer columns to store boolean values. Now we are handling the boolean values but it still raises if the value can't type cast to integer and is not a boolean. See #7509. Fixes #8067. Conflicts: activerecord/CHANGELOG.md
* fix quoting for ActiveSupport::Duration instancesFrancesco Rodriguez2012-07-041-0/+6
| | | | | | | | | | | | | | | | This patch fixes quoting for ActiveSupport::Duration instances: # before >> ActiveRecord::Base.connection.quote 30.minutes => "'--- 1800\n...\n'" # after >> ActiveRecord::Base.connection.quote 30.minutes => "1800" Also, adds a test for type casting ActiveSupport::Duration instances. Related to #1119.
* Prevent creating valid time-like objects from blank string from dbEgor Lynko2012-05-051-0/+28
| | | | Issue #6045
* Don't type cast values that don't respond to to_i to 1James Sanders & Jason Noble2012-04-301-0/+24
|
* on and ON are type casted to a true boolean columnSantiago Pastorino2012-01-111-0/+29