aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/cases/associations/has_many_associations_test.rb
Commit message (Collapse)AuthorAgeFilesLines
...
* When counting grouped records the target should be loaded to return a valid ↵miloops2008-09-151-0/+2
| | | | | | | | | groups count result. Without this change count_records will group for the count in the query and return erroneous results. Signed-off-by: Michael Koziarski <michael@koziarski.com> [#937 state:committed]
* Improve test coverage when using the group option in find, has_many or ↵miloops2008-09-111-0/+5
| | | | | | has_and_belongs_to_many. Signed-off-by: Michael Koziarski <michael@koziarski.com>
* Performance: Better query for ASSOCIATION_ids. Select only ids if the ↵miloops2008-08-301-7/+23
| | | | | | association hasn't been loaded. Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
* Implement count limit/offset support for has_many associationsTarmo Tänav2008-08-271-0/+6
| | | | | | [#348 state:resolved] Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
* Fix has_many#count_records. [#865 state:resolved]Xavier Noria2008-08-211-0/+12
| | | | Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
* Added missing fixtures for tests which fail to run independently if run ↵Tarmo Tänav2008-08-041-1/+1
| | | | | | after schema reset Signed-off-by: Michael Koziarski <michael@koziarski.com>
* Fixed test_joins_with_namespaced_model_should_use_correct_type for postgresqlTarmo Tänav2008-07-311-1/+1
| | | | Signed-off-by: Michael Koziarski <michael@koziarski.com>
* Use klass.sti_name to make sure associations take store_full_sti_class into ↵Daniel Guettler2008-07-221-0/+18
| | | | | | account. [#671 state:resolved] Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
* Add block syntax to HasManyAssociation#build. [#502 state:resolve]Jason Dew2008-07-141-0/+31
| | | | Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
* Add has_many :primary_key option to allow setting the primary key on a has ↵Andre Arko2008-07-061-0/+4
| | | | | | many association Signed-off-by: Michael Koziarski <michael@koziarski.com>
* Ensure AssociationCollection#size considers all unsaved record. [#305 ↵Pratik Naik2008-07-021-0/+7
| | | | | | state:resolved] [sds] Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
* Make sure associated has_many/habtm objects get saved even when :validate => ↵Jan De Poorter2008-06-271-1/+18
| | | | | | false is used. [#486 state:resolved] Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
* Fix quoting in test_counting_with_single_conditionsJeremy Kemper2008-06-111-1/+1
|
* Added some has_many testsJan De Poorter2008-06-111-3/+3
| | | | Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
* Add :validate option to associations. [#301 state:resolved]Jan De Poorter2008-06-111-0/+11
| | | | Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
* Ensure query assertion counts are the same when partial updates are enabledJeremy Kemper2008-05-301-0/+2
|
* Ensure AssociationCollection#count works with empty condition. [#271 ↵Pratik Naik2008-05-291-0/+4
| | | | state:resolved] [Jan De Poorter]
* Add first/last methods to associations/named_scope. [#226 state:resolved]Ryan Bates2008-05-201-0/+66
| | | | Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
* Fix blank conditions on AssociationCollection#find. [#104 state:resolved]Jonathan Viney2008-05-111-1/+7
| | | | Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
* Fix include? on has_many collections with finder_sql to fall back to Array ↵Joshua Bates2008-04-231-0/+11
| | | | | | include? rather than try to use SQL. [#18 state:resolved]
* Split associations_test.rb into multiple files based on association type. ↵Pratik Naik2008-04-061-0/+843
[Pratik] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@9233 5ecf4fe2-1ee6-0310-87b1-e25e094e27de