Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Make change_table use object of current database adapter | Nishant Modak | 2014-01-07 | 1 | -0/+17 |
| | | | | | | | | | - Earlier, change_table was creating database-agnostic object. - After this change, it will create correct object based on current database adapter. - This will ensure that create_table and change_table will get same objects. - This makes update_table_definition method public and nodoc. - Fixes #13577 and #13503 | ||||
* | Tidy up fix for PG extensions quoting | Carlos Antonio da Silva | 2013-12-23 | 1 | -2/+6 |
| | | | | | Always pass in the column for quote_bound_value and quote using it in case it exists there. | ||||
* | Serialize postgres' hstore, json and array types correctly in AR update methods. | Tadas Tamosauskas | 2013-12-23 | 1 | -0/+6 |
| | | | | | | | | | Fixes #12261. Closes #12395. Conflicts: activerecord/CHANGELOG.md activerecord/test/cases/adapters/postgresql/array_test.rb activerecord/test/cases/adapters/postgresql/json_test.rb | ||||
* | Don't skip tests if we don't need to. | Rafael Mendonça França | 2013-11-08 | 1 | -151/+149 |
| | | | | | | | We can conditional define the tests depending on the adapter or connection. Lets keep the skip for fail tests that need to be fixed. | ||||
* | `ActiveRecord::Store` works together with PG `hstore` columns. | Yves Senn | 2013-10-25 | 1 | -0/+21 |
| | | | | | | This is necessary because as of 5ac2341 `hstore` columns are always stored as `Hash` with `String` keys. `ActiveRecord::Store` expected the attribute to be an instance of `HashWithIndifferentAccess`, which led to the bug. | ||||
* | cast hstore values on write to be consistent with reading from the db. | Yves Senn | 2013-08-08 | 1 | -0/+7 |
| | |||||
* | Merge pull request #9876 from macksmind/restore_cols_dropped_by_hstore_test | Rafael Mendonça França | 2013-03-26 | 1 | -15/+5 |
|\ | | | | | Restore columns dropped by hstore test | ||||
| * | Combine tests and restore columns dropped by hstore testing | Mack Earnhardt | 2013-03-26 | 1 | -15/+5 |
| | | | | | | | | | | Disabling the hstore extension during testing created order dependent test failures. | ||||
* | | Fix regex to strip quotations from hstore values | jlxw | 2013-03-23 | 1 | -0/+4 |
|/ | | | | Previously regex did not strip quotation marks where hstore values were multi-line strings. | ||||
* | Support PostgreSQL specific column types when using `change_table`. | Yves Senn | 2013-02-28 | 1 | -0/+15 |
| | | | | | | | | Closes #9480. We use `TableDefinition` for `#create_table` and `Table` for `#change_table`. The PostgreSQL sepcifc types were only defined on `TableDefinition` so I also added them to `Table`. | ||||
* | improve tests to check for existence of extensions method, and skip testing ↵ | Justin George | 2013-02-06 | 1 | -0/+1 |
| | | | | dumped extensions if they are unsupported by the database | ||||
* | Add some tests to enumerate how extensions should be stored in the schema output | Justin George | 2013-02-06 | 1 | -0/+4 |
| | |||||
* | Enable hstore extensions on tests if it is not enabled and database supports it | Rafael Mendonça França | 2013-02-05 | 1 | -1/+8 |
| | |||||
* | add API to pg for enabling / disabling hstore | Aaron Patterson | 2013-01-28 | 1 | -7/+29 |
| | |||||
* | %s/find(:\(first\|last\|all\), \([^()]*\))/scoped(\2).\1/gcI amongst other ↵ | Jon Leighton | 2012-04-27 | 1 | -3/+3 |
| | | | | things | ||||
* | Always quote hstore keys and values | Ryan Fitzgerald | 2012-04-24 | 1 | -1/+9 |
| | | | | | | | escape_hstore uses quotation marks around keys and values only if it seems necessary. However, it currently breaks in the presence of some non-ASCII characters. Instead of trying to guess exactly which characters are safe, it seems better to always use quotes. | ||||
* | Also support writing the hstore back to the database | Joel | 2012-02-08 | 1 | -0/+8 |
| | |||||
* | string_to_hstore / hstore_to_string, serializing | Joel | 2012-02-08 | 1 | -6/+6 |
| | |||||
* | Additional hstore tests, supporting null values, better compliance with ↵ | Joel | 2012-02-08 | 1 | -7/+59 |
| | | | | postgres docs | ||||
* | skip hstore tests on PG databases that do not have hstore | Aaron Patterson | 2011-12-20 | 1 | -2/+8 |
| | |||||
* | making sure updates work | Aaron Patterson | 2011-12-20 | 1 | -7/+13 |
| | |||||
* | hstores can cycle | Aaron Patterson | 2011-12-20 | 1 | -2/+26 |
| | |||||
* | can create hstore records via AR API | Aaron Patterson | 2011-12-20 | 1 | -0/+7 |
| | |||||
* | multiple key / values work | Aaron Patterson | 2011-12-20 | 1 | -0/+6 |
| | |||||
* | PostgreSQL hstore types are automatically deserialized from the database. | Aaron Patterson | 2011-12-20 | 1 | -0/+16 |
| | |||||
* | pg columns should understand the hstore type | Aaron Patterson | 2011-12-20 | 1 | -0/+24 |