aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib/active_record
Commit message (Collapse)AuthorAgeFilesLines
* Rename field_changed? to _field_changed? so that users can create a field ↵Akira Matsuda2012-02-142-4/+4
| | | | named field
* Merge pull request #4834 from sskirby/fix_usage_of_psql_in_db_test_prepareAaron Patterson2012-02-131-1/+1
|\ | | | | Fix usage of psql in db:test:prepare
| * fixes rake db:test:prepare when using postgresql with sql db structure file ↵Sean Kirby2012-02-011-1/+1
| | | | | | | | and specifying a template in database.yml
* | Merge pull request #5000 from flavorpill/master-with-multidb-association-fixAaron Patterson2012-02-133-8/+5
|\ \ | | | | | | Fix associations with per-class/multiple database connections
| * | fix associations when using per class databasesLars Kanis2012-02-103-8/+5
| | | | | | | | | | | | | | | | | | would get ConnectionNotEstablished error because it always tried to use ActiveRecord::Base's connection, even though it should be using the connection of the model whose context we're operating in
* | | Alias reconnect! to reset! for Mysql2 adapter since they have sameWaseem Ahmad2012-02-121-5/+1
| | | | | | | | | | | | behavior.
* | | handle id attribute in PrimaryKey moduleSergey Nartimov2012-02-112-1/+7
| | |
* | | say unshift when you mean unshift (modulus prepend)Xavier Noria2012-02-111-1/+3
| | |
* | | PG column consults oid types when typecastingAaron Patterson2012-02-104-7/+28
| | |
* | | dynamically populate casting objects via the pg_type tableAaron Patterson2012-02-102-35/+74
| | |
* | | Merge branch 'joelhoffman-postgres_schema_builder' into instance_readerAaron Patterson2012-02-103-27/+41
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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/+5
| | | |
| * | | Hstore values are all stringsJoel2012-02-081-1/+1
| | | |
| * | | string_to_hstore / hstore_to_string, serializingJoel2012-02-082-11/+20
| | | |
| * | | Additional hstore tests, supporting null values, better compliance with ↵Joel2012-02-081-21/+17
| | | | | | | | | | | | | | | | postgres docs
| * | | add hstore to postgres native types and defaultsJoel2012-02-081-1/+5
| | | |
* | | | Merge branch 'master' into instance_readerAaron Patterson2012-02-105-5/+27
|\ \ \ \ | | |/ / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | * 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-5/+27
| |\ \ \ | | | | | | | | | | Add support for partial indices to PostgreSQL adapter
| | * | | Made schema dumper recognize partial indices' where statementsMarcelo Silveira2012-02-093-2/+5
| | | | |
| | * | | Added where option to add_index to support postgresql partial indicesMarcelo Silveira2012-02-093-3/+22
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* | | | | fixing indentation, moving class methods togetherAaron Patterson2012-02-091-124/+124
| | | | |
* | | | | removing dead codeAaron Patterson2012-02-094-29/+0
| | | | |
* | | | | typecast columns based on the returned typesAaron Patterson2012-02-091-2/+14
| | | | |
* | | | | Merge branch 'master' into instance_readerAaron Patterson2012-02-095-5/+17
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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 ...
| * | | | Merge branch 'master' of github.com:lifo/docrailsVijay Dev2012-02-092-3/+3
| |\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: activerecord/lib/active_record/relation/query_methods.rb
| | * | | | Correcting ActiveRecord::Core#encode_with docsJosef Šimánek2012-02-071-1/+1
| | | | | |
| | * | | | use appropriate words for docs of Model.noneRohit Arondekar2012-02-071-2/+2
| | | | | |
| | * | | | minor tidy up of none relation query methodRohit Arondekar2012-02-061-2/+2
| | | | | |
| | * | | | Fix code example in ActiveRecord::Relation#noneCarlos Antonio da Silva2012-02-011-3/+3
| | | | | |
| * | | | | Refactored the OrderedHash related stuffRaghunadh2012-02-091-2/+1
| | |_|/ / | |/| | |
| * | | | AR::Relation#pluck: improve to work with joinsBogdan Gusiev2012-02-081-0/+3
| | | | |
| * | | | Fix attribute_before_type_cast for serialized attributes. Fixes #4837.Jon Leighton2012-02-072-0/+10
| | | | |
* | | | | only exclude serialized columns from cacheable columnsAaron Patterson2012-02-091-1/+5
| | | | |
* | | | | removed unnecessary translator objectAaron Patterson2012-02-082-44/+0
| | | | |
* | | | | use the key name yielded to the fetch blockAaron Patterson2012-02-081-9/+7
| | | | |
* | | | | return early if the cast attribute has been cachedAaron Patterson2012-02-081-11/+16
| | | | |
* | | | | always call `read_attribute` from the reader methodAaron Patterson2012-02-081-14/+12
| | | | |
* | | | | use the pg column to cast valuesAaron Patterson2012-02-081-1/+1
| | | | |
* | | | | cache attribute if it is supposed to be cachedAaron Patterson2012-02-071-1/+5
| | | | |
* | | | | only unescape bytea after it has been read from the databaseAaron Patterson2012-02-072-6/+4
| | | | |
* | | | | pgcolumn knows how to typecast binary columnsAaron Patterson2012-02-071-0/+6
| | | | |
* | | | | give each PG type a `type` method and decortate tz attributesAaron Patterson2012-02-075-18/+60
| | | | |
* | | | | hstores can be typecastAaron Patterson2012-02-071-0/+10
| | | | |
* | | | | columns are lazily typecast, so no more calls to `result_as_array`Aaron Patterson2012-02-071-1/+1
| | | | |
* | | | | taking column width in to account when fetching decimal fieldsAaron Patterson2012-02-072-2/+42
| | | | |
* | | | | return early from typecasting if the value is nilAaron Patterson2012-02-071-1/+15
| | | | |
* | | | | mapping more oidsAaron Patterson2012-02-071-1/+7
| | | | |
* | | | | many of the OIDs mapped and implementedAaron Patterson2012-02-072-1/+164
| | | | |
* | | | | moving column types to an ivar on the resultAaron Patterson2012-02-072-9/+10
| | | | |
* | | | | copy over columns hash on reloadAaron Patterson2012-02-071-0/+1
| | | | |