aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/cases/column_test.rb
Commit message (Collapse)AuthorAgeFilesLines
* 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