aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test
Commit message (Collapse)AuthorAgeFilesLines
* Fixed bug in Quoting that caused classes to be quoted incorrectlyRyan Oblak2012-03-091-0/+11
|
* Fix warning: assigned but unused variablekennyj2012-03-011-3/+0
|
* force datetime attributes to be changed, fix GH #3965Sergey Nartimov2012-02-281-0/+13
|
* Merge pull request #5168 from kennyj/fix_5152Aaron Patterson2012-02-271-0/+5
|\ | | | | [PostgreSQL] Remove NULLS FIRST/LAST. Closes #5152
| * Remove NULLS FIRST/LAST. closes #5152kennyj2012-02-251-0/+5
| |
* | Fix type_to_sql with text and limit on mysql/mysql2. Fix GH #3931.kennyj2012-02-262-3/+3
|/
* Restored ability to identify ID and Sequence from tables relying on a ↵William Lawson2012-02-201-3/+7
| | | | nonmatching sequence default value for PK.
* database connections are automatically established after forking.Aaron Patterson2012-02-161-0/+21
| | | | Connection pools are 1:1 with pids.
* move id_before_type_cast to PrimaryKey moduleSergey Nartimov2012-02-161-0/+8
|
* A test case for GH #3544 to ensure that a field named field works fineAkira Matsuda2012-02-141-0/+14
|
* Merge pull request #5000 from flavorpill/master-with-multidb-association-fixAaron Patterson2012-02-138-2/+35
|\ | | | | Fix associations with per-class/multiple database connections
| * added test for #3732Rick Martinez2012-02-108-2/+35
| |
* | Revert PR#5001 "removed unuseful require for reply as we are not using ↵Vishnu Atrai2012-02-124-0/+5
| | | | | | | | | | | | require model" This reverts commit 7381596ea32aff47222af89e4bc66000f4597acb.
* | fix build 5001, model reply is required in cases/primary_keys_test too!Vishnu Atrai2012-02-121-0/+1
| |
* | fix build #5001 reply model required in relations_testVishnu Atrai2012-02-121-0/+1
| |
* | Merge pull request #5003 from kennyj/fix_warning_20120211Santiago Pastorino2012-02-111-1/+1
|\ \ | | | | | | Fix warning: The method name is a duplicate and wrong.
| * | Fix warning: The method name is a duplicate and wrong.kennyj2012-02-111-1/+1
| | |
* | | removed unuseful require for reply as we are not using require modelKarunakar (Ruby)2012-02-116-7/+0
|/ /
* | PG column consults oid types when typecastingAaron Patterson2012-02-101-3/+6
| |
* | Merge branch 'joelhoffman-postgres_schema_builder' into instance_readerAaron Patterson2012-02-103-9/+85
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * joelhoffman-postgres_schema_builder: Also support writing the hstore back to the database Hstore values are all strings string_to_hstore / hstore_to_string, serializing don't test schema where hstore not installed schema dumper tests for hstore Additional hstore tests, supporting null values, better compliance with postgres docs add hstore to postgres native types and defaults Conflicts: activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb
| * | Also support writing the hstore back to the databaseJoel2012-02-081-0/+8
| | |
| * | string_to_hstore / hstore_to_string, serializingJoel2012-02-081-6/+6
| | |
| * | don't test schema where hstore not installedJoel2012-02-081-0/+2
| | |
| * | schema dumper tests for hstoreJoel2012-02-082-1/+15
| | |
| * | Additional hstore tests, supporting null values, better compliance with ↵Joel2012-02-081-7/+59
| | | | | | | | | | | | postgres docs
* | | Merge branch 'master' into instance_readerAaron Patterson2012-02-105-0/+37
|\ \ \ | | |/ | |/| | | | | | | | | | | | | | | | | | | * master: Fix GH #4720. Routing problem with nested namespace and already camelized controller option. make Range#overlaps? accept Range of Time improved test case for partial indices Made schema dumper recognize partial indices' where statements Added where option to add_index to support postgresql partial indices
| * | Merge pull request #4956 from mhfs/pg_partial_indicesAaron Patterson2012-02-105-0/+37
| |\ \ | | | | | | | | Add support for partial indices to PostgreSQL adapter
| | * | improved test case for partial indicesMarcelo Silveira2012-02-091-6/+9
| | | |
| | * | Made schema dumper recognize partial indices' where statementsMarcelo Silveira2012-02-094-0/+22
| | | |
| | * | Added where option to add_index to support postgresql partial indicesMarcelo Silveira2012-02-091-0/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The `add_index` method now supports a `where` option that receives a string with the partial index criteria. add_index(:accounts, :code, :where => "active") Generates CREATE INDEX index_accounts_on_code ON accounts(code) WHERE active
* | | | typecast columns based on the returned typesAaron Patterson2012-02-091-6/+1
| | | |
* | | | Merge branch 'master' into instance_readerAaron Patterson2012-02-093-5/+35
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * master: (30 commits) Bump tzinfo. 0.3.31 was released on November 6, 2011. Fix GH #4909. Dependency on TZInfo move from AR to AS. moving ordered hash to normal hash because ruby 1.9.3 hash defaultly ordered one Refactored the OrderedHash related stuff Replaced OrderedHash usage with Ruby 1.9 Hash Replaced OrderedHash with Hash for ruby 1.9 series removed unnecessary code replacing the orderhash with hash for ruby-1.9 Clean up some wording. Fix typo. test title changed corresponding to the test replaced active support ordered hash to ruby hash on active resource PostgreSQL does not work in the same way of the other adapters AR::Relation#pluck: improve to work with joins Fix match docs Fix attribute_before_type_cast for serialized attributes. Fixes #4837. Fix failing request test Fixes in AMo README Update README to mention lint. Trim down Active Model API by removing valid? and errors.full_messages ...
| * | | moving ordered hash to normal hash because ruby 1.9.3 hash defaultly ordered oneKarunakar (Ruby)2012-02-091-5/+5
| | |/ | |/|
| * | PostgreSQL does not work in the same way of the other adaptersRafael Mendonça França2012-02-081-3/+7
| | |
| * | AR::Relation#pluck: improve to work with joinsBogdan Gusiev2012-02-081-0/+11
| | |
| * | Fix attribute_before_type_cast for serialized attributes. Fixes #4837.Jon Leighton2012-02-071-0/+15
| |/
* | fixing the list of cached columnsAaron Patterson2012-02-091-1/+3
| |
* | only exclude serialized columns from cacheable columnsAaron Patterson2012-02-091-1/+1
| |
* | postgresql correctly typecasts back to Ruby, so change assertionsAaron Patterson2012-02-071-2/+4
| |
* | column_types hash is used for doing typecastingAaron Patterson2012-02-071-1/+21
| |
* | column types are passed from the result set to the instantiated AR objectAaron Patterson2012-02-071-0/+4
|/
* let automatic EXPLAIN ignore CACHE notificationsXavier Noria2012-02-031-0/+48
|
* Get ActiveRecord::TestCase back on its feet, despite deprecation. It ↵Jeremy Kemper2012-02-052-91/+7
| | | | requires SQLCounter which was moved to AR internal tests only.
* Merge pull request #4856 from ihid/store_null_bugAaron Patterson2012-02-023-3/+14
|\ | | | | Allow store to be a not null column.
| * Allow store to be a not null column.Jeremy Walker2012-02-023-3/+14
| |
* | columns method doesn't have name argumentRafael Mendonça França2012-02-021-5/+4
| |
* | Remove useless argument in #columns.Sebastian Martinez2012-02-021-1/+1
| |
* | Merge pull request #4543 from jdelStrother/find_or_initJon Leighton2012-02-011-0/+12
|\ \ | |/ |/| Don't instantiate two objects in collection proxy / find_or_instantiate_by
| * Don't instantiate two objects in collection proxy / find_or_instantiator_byJonathan del Strother2012-01-191-0/+12
| |
* | Fix typoRafael Mendonça França2012-02-011-2/+2
| |