aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/cases/associations/has_and_belongs_to_many_associations_test.rb
Commit message (Collapse)AuthorAgeFilesLines
* update tests for mysql2 supportBrian Lopez2010-08-021-2/+7
|
* removing unused models from testsSubba Rao Pasupuleti2010-07-211-6/+0
| | | | | | [#5153 state:resolved] Signed-off-by: José Valim <jose.valim@gmail.com>
* Timestamp columns of HABTM join table should record timestampsNeeraj Singh2010-07-211-1/+34
| | | | [#5161 state:resolved]
* Ensure that primary_keys of HABTM records is not double quotedNeeraj Singh2010-07-201-0/+18
| | | | [#5152 state:reslved]
* Fixed gruoped_by_title spelling [#5063 state:committed]Ben Somers2010-07-081-2/+2
| | | | Signed-off-by: Xavier Noria <fxn@hashref.com>
* Remove find_with_associations and related code from associations now that ↵Pratik Naik2010-01-201-15/+0
| | | | Relation handles that stuff
* Merge commit 'rails/master'Emilio Tagua2009-08-081-2/+4
|\ | | | | | | | | | | Conflicts: activerecord/test/cases/adapter_test.rb activerecord/test/cases/method_scoping_test.rb
| * added :order option to find :first methods and associations as otherwise ↵Raimonds Simanovskis2009-08-061-2/+4
| | | | | | | | | | | | | | | | Oracle tests were failing Oracle stores '' string as NULL Oracle cannot have identifiers larger than 30 characters added missing fixtures to test setup method
* | More work on removing plain SQL from associations and use ARel instead.Emilio Tagua2009-08-071-4/+4
|/
* Revert "Revert "Generate proper :counter_sql from :finder_sql when there is ↵Pratik Naik2009-07-011-0/+7
| | | | | | | | | a newline character immediately following 'SELECT' [#2118 state:resolved]"" This reverts commit 80f1f863cd0f9cba89079511282de5710a2e1832. The feature doesn't work on Postgres, so don't test it on Postgres. Also, Postgres compatibility is irrelevant to the ticket/patch in question.
* Revert "Generate proper :counter_sql from :finder_sql when there is a ↵Yehuda Katz + Carl Lerche2009-06-221-5/+0
| | | | | | | | newline character immediately following 'SELECT' [#2118 state:resolved]" This reverts commit 4851ca9e13a4317342df02ae25b1929340523f7a. The tests do not pass for postgresql.
* Generate proper :counter_sql from :finder_sql when there is a newline ↵Patrick Joyce2009-06-211-0/+5
| | | | | | character immediately following 'SELECT' [#2118 state:resolved] Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
* Cherry-pick core extensionsJeremy Kemper2009-05-131-0/+1
|
* Ensure AutosaveAssociation runs remove callbacks [#2146 state:resolved]Luca Guidi2009-03-121-0/+27
| | | | | Signed-off-by: Eloy Duran <eloy.de.enige@gmail.com> Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
* Ruby 1.9 compat: rename deprecated assert_raises to assert_raise.Jeremy Kemper2009-03-081-1/+1
| | | | [#1617 state:resolved]
* Ensure self referential HABTM associations raise an exception if ↵Tom Lea2009-03-061-0/+8
| | | | | | association_foreign_key is missing. [#1252 state:resolved] Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
* Bump mocha requirement for Ruby 1.9 compat. Remove uses_mocha.Jeremy Kemper2009-02-031-6/+4
|
* Fix has_and_belongs_to_many_associations tests. #1738Pratik Naik2009-01-181-2/+2
|
* Cache columns for has_and_belongs_to_many associationslukeludwig2009-01-171-0/+11
| | | | | This avoids repeatedly calling SHOW COLUMNS when the association is queried [#1738 state:committed]
* Add :having option to find, to use in combination with grouped finds. Also ↵miloops2008-12-011-0/+5
| | | | | | | added to has_many and has_and_belongs_to_many associations. Signed-off-by: Michael Koziarski <michael@koziarski.com> [#1028 state:committed]
* Added tests for HABTM associations with counter_sqlTekin Suleyman2008-11-071-0/+23
| | | | | Signed-off-by: Michael Koziarski <michael@koziarski.com> [#1102 state:committed]
* Make AssociationCollection start transactions in the correct database.Hongli Lai (Phusion)2008-09-231-0/+9
| | | | | | | | | | AssociationCollection now starts transactions by calling AssociationCollection#transaction instead of @owner.transaction or @reflection.klass.transaction. Signed-off-by: Michael Koziarski <michael@koziarski.com> [#1081 state:committed]
* Association#first and last should not load the association if not needed. ↵Jan De Poorter2008-09-221-1/+1
| | | | | | [#1091 state:resolved] Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
* Improve test coverage when using the group option in find, has_many or ↵miloops2008-09-111-0/+12
| | | | | | 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-9/+25
| | | | | | association hasn't been loaded. Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
* Refactored AssociationCollection#count for uniformity and Ruby 1.8.7 support.Ernie Miller2008-08-281-0/+7
| | | | | | [#831 state:resolved] Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
* um.. yeahJeremy Kemper2008-08-261-2/+2
|
* typoJeremy Kemper2008-08-261-2/+2
|
* fix tests relying on implicit orderingJeremy Kemper2008-08-251-4/+2
|
* Fixed ordering in ↵Tarmo Tänav2008-08-221-1/+1
| | | | test_find_in_association_with_custom_finder_sql_and_multiple_interpolations
* Updated has_and_belongs_to_many association to fix :finder_sql ↵Nathan Witmer2008-08-161-0/+7
| | | | | | interpolation. [#848 state:resolved] Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
* Fixed AssociationCollection#<< resulting in unexpected values in @target ↵Ernie Miller2008-08-081-0/+11
| | | | | | when :uniq => true Signed-off-by: Michael Koziarski <michael@koziarski.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>
* fix eager loading with dynamic findersBrandon Keepers2008-06-091-0/+6
|
* Add first/last methods to associations/named_scope. [#226 state:resolved]Ryan Bates2008-05-201-0/+2
| | | | Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
* Fixes a subtle bug when using symbols for key definitions in habtm associationsDavid Dollar2008-04-231-0/+29
|
* Split associations_test.rb into multiple files based on association type. ↵Pratik Naik2008-04-061-0/+653
[Pratik] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@9233 5ecf4fe2-1ee6-0310-87b1-e25e094e27de