Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
* | Provide a call stack for deprecation warnings where needed. | Nikita Afanasenko | 2012-10-29 | 1 | -2/+3 | |
| | | | | It's sometimes hard to quickly find where deprecated call was performed, especially in case of migrating between Rails versions. So this is an attempt to improve the call stack part of the warning message by providing caller explicitly. | |||||
* | The default value of a text/blob in mysql strict mode should be nil | Jon Leighton | 2012-10-19 | 1 | -4/+0 | |
| | | | | | | | | | In non-strict mode it is '', but if someone is in strict mode then we should honour the strict semantics. Also, this removes the need for a completely horrible hack in dirty.rb. Closes #7780 | |||||
* | Support for partial inserts. | Jon Leighton | 2012-09-28 | 1 | -0/+4 | |
| | | | | | | | | | | | When inserting new records, only the fields which have been changed from the defaults will actually be included in the INSERT statement. The other fields will be populated by the database. This is more efficient, and also means that it will be safe to remove database columns without getting subsequent errors in running app processes (so long as the code in those processes doesn't contain any references to the removed column). | |||||
* | update ConnectionAdaptar::Column#type_cast_code to be compatible with 3.2 branch | Thiago Pradi | 2012-09-13 | 1 | -1/+1 | |
| | ||||||
* | ActiveRecord support to PostgreSQL 9.2 JSON type | Dickson S. Guedes | 2012-09-05 | 1 | -0/+1 | |
| | | | | | | | | | This implements the support to encode/decode JSON data to/from database and creating columns of type JSON using a native type [1] supported by PostgreSQL from version 9.2. [1] http://www.postgresql.org/docs/9.2/static/datatype-json.html | |||||
* | Fix for time type columns with invalid time | Adam Meehan | 2012-09-05 | 1 | -1/+7 | |
| | | | | | | The string_to_dummy_time method was blindly parsing the dummy time string with Date._parse which returns a hash for the date part regardless of whether the time part is an invalid time string. | |||||
* | Fix occasional microsecond conversion inaccuracy | Ari Pollak | 2012-08-15 | 1 | -2/+2 | |
| | | | | | | | | | ActiveRecord::ConnectionAdapters::Column#microseconds did an unnecessary conversion to from Rational to float when calculating the integer number of microseconds. Some terminating decimal numbers in base10 are repeating decimal numbers in base2 (the format of float), and occasionally this causes a rounding error. Patch & explanation originally from Logan Bowers. | |||||
* | load active_support/deprecation in active_support/rails | Xavier Noria | 2012-08-02 | 1 | -1/+0 | |
| | ||||||
* | Merge pull request #6192 from ↵ | Aaron Patterson | 2012-05-16 | 1 | -0/+1 | |
|\ | | | | | | | | | danmcclain/add_inet_and_cidr_types_to_postgresql_adapter Add support for macaddr, inet, and cidr types to PostgreSQL adapter | |||||
| * | Converts inet and cidr columns to NetAddr::CIDR | Dan Seaver | 2012-05-07 | 1 | -0/+1 | |
| | | ||||||
* | | Prevent creating valid time-like objects from blank string from db | Egor Lynko | 2012-05-05 | 1 | -3/+3 | |
|/ | | | | Issue #6045 | |||||
* | Don't type cast values that don't respond to to_i to 1 | James Sanders & Jason Noble | 2012-04-30 | 1 | -1/+1 | |
| | ||||||
* | Deprecate Column#type_cast_code | Carlos Antonio da Silva | 2012-03-29 | 1 | -0/+4 | |
| | ||||||
* | PG column consults oid types when typecasting | Aaron Patterson | 2012-02-10 | 1 | -1/+4 | |
| | ||||||
* | string_to_hstore / hstore_to_string, serializing | Joel | 2012-02-08 | 1 | -2/+2 | |
| | ||||||
* | delegate attribute typecasting to the column | Aaron Patterson | 2012-02-06 | 1 | -0/+15 | |
| | ||||||
* | on and ON are type casted to a true boolean column | Santiago Pastorino | 2012-01-11 | 1 | -2/+2 | |
| | ||||||
* | PostgreSQL hstore types are automatically deserialized from the database. | Aaron Patterson | 2011-12-20 | 1 | -0/+2 | |
| | ||||||
* | handle not only strings in date type cast | Sergey Nartimov | 2011-12-19 | 1 | -7/+11 | |
| | ||||||
* | Add missing require 'set' | Daniel Azuma | 2011-06-20 | 1 | -0/+2 | |
| | ||||||
* | Year 0 should fall to nil only if month and day are also 0 | Kirill Radzikhovskyy | 2011-05-17 | 1 | -1/+1 | |
| | ||||||
* | refactor a bunch of return / if to a case / when | Aaron Patterson | 2011-02-03 | 1 | -22/+22 | |
| | ||||||
* | moving AR::ConnectionAdapters::Column to its own file | Aaron Patterson | 2011-02-01 | 1 | -0/+268 | |