Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
| * | Support the :dependent option on has_many :through associations. For ↵ | Jon Leighton | 2011-02-07 | 1 | -0/+1 | |
| | | | | | | | | historical and practical reasons, :delete_all is the default deletion strategy employed by association.delete(*records), despite the fact that the default strategy is :nullify for regular has_many. Also, this only works at all if the source reflection is a belongs_to. For other situations, you should directly modify the through association. | |||||
| * | Fixing ordering of HABTM association deletion [#6191 state:resolved] | Edward Faulkner | 2011-02-04 | 1 | -0/+13 | |
| | | | | | | | | Signed-off-by: Santiago Pastorino <santiago@wyeworks.com> | |||||
| * | Add create_association! for belongs_to | Jon Leighton | 2011-01-16 | 1 | -0/+1 | |
| | | ||||||
| * | Support for :counter_cache on polymorphic belongs_to | Jon Leighton | 2010-12-31 | 1 | -0/+1 | |
| | | ||||||
| * | Fix creation of has_many through records with custom primary_key option on ↵ | Szymon Nowak | 2010-12-23 | 1 | -0/+1 | |
| | | | | | | | | belongs_to [#2990 state:resolved] | |||||
| * | has_many associations with :dependent => :delete_all should update the ↵ | Jon Leighton | 2010-12-20 | 1 | -0/+1 | |
| | | | | | | | | counter cache when deleting records | |||||
| * | Verify that creating a has_many through record where there is a ↵ | Jon Leighton | 2010-12-16 | 1 | -0/+1 | |
| | | | | | | | | default_scope on the join model works correctly (creates the join record with the default scope applied) | |||||
* | | Merge branch 'master' into nested_has_many_through | Jon Leighton | 2010-11-08 | 1 | -0/+1 | |
|\| | | | | | | | | | Conflicts: activerecord/lib/active_record/associations.rb | |||||
| * | Add timestamps to Topic | Pratik Naik | 2010-11-02 | 1 | -0/+1 | |
| | | ||||||
* | | Merge branch 'master' into nested_has_many_through | Jon Leighton | 2010-10-28 | 1 | -52/+61 | |
|\| | | | | | | | | | | | | | | | Conflicts: activerecord/CHANGELOG activerecord/lib/active_record/association_preload.rb activerecord/lib/active_record/associations.rb activerecord/test/schema/schema.rb | |||||
| * | made a pass in AR's schema.rb to keep (most) create statements in ↵ | Xavier Noria | 2010-10-22 | 1 | -59/+60 | |
| | | | | | | | | lexicographic order, and fixed an FK | |||||
| * | has_one maintains the association with separate after_create/after_update | Xavier Noria | 2010-10-22 | 1 | -0/+8 | |
| | | | | | | | | | | This way parent models can get their own after_create and after_update callbacks fired after has_one has done its job. | |||||
* | | Support the :primary_key option on a through reflection in a nested through ↵ | Jon Leighton | 2010-10-19 | 1 | -0/+2 | |
| | | | | | | | | association | |||||
* | | Support for :primary_key option on the source reflection of a through ↵ | Jon Leighton | 2010-10-19 | 1 | -2/+3 | |
| | | | | | | | | association, where the source is a has_one or has_many | |||||
* | | Respect the :primary_key option on the through_reflection of (non-nested) ↵ | Jon Leighton | 2010-10-19 | 1 | -0/+2 | |
| | | | | | | | | through associations | |||||
* | | Properly support conditions on any of the reflections involved in a nested ↵ | Jon Leighton | 2010-10-19 | 1 | -0/+1 | |
| | | | | | | | | through association | |||||
* | | Add test_has_one_through_has_one_through_with_belongs_to_source_reflection | Jon Leighton | 2010-10-14 | 1 | -0/+1 | |
| | | ||||||
* | | Add support for nested through associations in JoinAssociation. Hence ↵ | Jon Leighton | 2010-10-09 | 1 | -0/+5 | |
| | | | | | | | | Foo.joins(:bar) will work for through associations. There is some duplicated code now, which will be refactored. | |||||
* | | Initial nested_has_many_through support [#1152] | Bodaniel Jeanes | 2010-09-26 | 1 | -0/+1 | |
|/ | ||||||
* | A few schema changes for the SQL Server adapter. | Ken Collins | 2010-09-03 | 1 | -3/+3 | |
| | | | | Signed-off-by: Michael Koziarski <michael@koziarski.com> | |||||
* | While creating a new record using has_many create method default scope of ↵ | Neeraj Singh | 2010-08-19 | 1 | -0/+5 | |
| | | | | | | | | | | | child should be respected. author.posts.create should take into account default_scope defined on post. [#3939: state:resolved] Signed-off-by: José Valim <jose.valim@gmail.com> | |||||
* | Both tests are using the same model, move the model to another file and add ↵ | Santiago Pastorino | 2010-08-14 | 1 | -1/+1 | |
| | | | | the missing require | |||||
* | Deletes trailing whitespaces (over text files only find * -type f -exec sed ↵ | Santiago Pastorino | 2010-08-14 | 1 | -3/+3 | |
| | | | | 's/[ \t]*$//' -i {} \;) | |||||
* | Ensure we can nest include calls [#5285 state:resolved] | Neeraj Singh | 2010-08-12 | 1 | -0/+4 | |
| | | | | Signed-off-by: José Valim <jose.valim@gmail.com> | |||||
* | Eager loading an association should not change the count of children | Neeraj Singh | 2010-08-02 | 1 | -0/+13 | |
| | | | | | | [#4971 state:resolved] Signed-off-by: José Valim <jose.valim@gmail.com> | |||||
* | added failing touch propagation test | Jakub Kuźma | 2010-08-02 | 1 | -0/+2 | |
| | | | | Signed-off-by: José Valim <jose.valim@gmail.com> | |||||
* | update_attribute should not update readonly attributes | Neeraj Singh | 2010-07-21 | 1 | -0/+1 | |
| | | | | | | [#5106 state:resolved] Signed-off-by: José Valim <jose.valim@gmail.com> | |||||
* | Timestamp columns of HABTM join table should record timestamps | Neeraj Singh | 2010-07-21 | 1 | -0/+2 | |
| | | | | [#5161 state:resolved] | |||||
* | Ensure that primary_keys of HABTM records is not double quoted | Neeraj Singh | 2010-07-20 | 1 | -0/+13 | |
| | | | | [#5152 state:reslved] | |||||
* | string IDs are now quoted correctly [#5064 state:resolved] | Will St. Clair + Neeraj Singh | 2010-07-13 | 1 | -0/+17 | |
| | | | | Signed-off-by: José Valim <jose.valim@gmail.com> | |||||
* | reset_counter should work with non-traditional belongs_to and polymorphic ↵ | Neeraj Singh | 2010-07-08 | 1 | -0/+13 | |
| | | | | | | | | belongs_to [#4984 state:resolved] Signed-off-by: José Valim <jose.valim@gmail.com> | |||||
* | adding column named 'group' to ensure that nothing breaks given that 'group' ↵ | Neeraj Singh | 2010-06-23 | 1 | -0/+1 | |
| | | | | | | | | is sql reserved word [#4945 state:resolved] Signed-off-by: José Valim <jose.valim@gmail.com> | |||||
* | Support fixtures for namespaced models [#2965 state:resolved] | Andrew White | 2010-04-25 | 1 | -0/+9 | |
| | | | | Signed-off-by: José Valim <jose.valim@gmail.com> | |||||
* | Refactor compute_type to handle situations where the correct class is ↵ | Andrew White | 2010-04-12 | 1 | -0/+14 | |
| | | | | | | already loaded Signed-off-by: wycats <wycats@gmail.com> | |||||
* | Add failing test that triggers the stack overflow | Bryan Stearns | 2010-01-08 | 1 | -0/+10 | |
| | ||||||
* | Add inverse polymorphic association support. [#3520 state:resolved] | George Ogata | 2009-12-28 | 1 | -0/+4 | |
| | | | | Signed-off-by: Eloy Duran <eloy.de.enige@gmail.com> | |||||
* | Revert "Revert "Assert primary key does not exist in habtm when the ↵ | Jeremy Kemper | 2009-11-23 | 1 | -1/+1 | |
| | | | | | | | | | | | | | association is defined, instead of doing that everytime a record is inserted."" This reverts commit 2b82708b0efb3a3458e8177beab58f0c585788ae. [#3128 state:resolved] Conflicts: activerecord/lib/active_record/associations.rb activerecord/lib/active_record/associations/has_and_belongs_to_many_association.rb | |||||
* | Fix has_one with foreign_key and primary_key association bug which caused ↵ | Graeme Porteous | 2009-09-12 | 1 | -0/+1 | |
| | | | | | | | | the associated object being lost when saving the owner. [#1756 state:resolved] Mixed in a bit from patch by ransom-briggs. [#2813 state:resolved] Signed-off-by: Eloy Duran <eloy.de.enige@gmail.com> | |||||
* | Revert "Assert primary key does not exist in habtm when the association is ↵ | Jeremy Kemper | 2009-09-02 | 1 | -1/+1 | |
| | | | | | | | | | | defined, instead of doing that everytime a record is inserted." Test failures on PostgreSQL. [#3128 state:open] This reverts commit da636809daca9c338200811d3590e446f57c8e81. | |||||
* | Assert primary key does not exist in habtm when the association is defined, ↵ | José Valim | 2009-09-01 | 1 | -1/+1 | |
| | | | | | | | | instead of doing that everytime a record is inserted. [#3128 state:committed] Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net> | |||||
* | has_many :through create should not raise validation errors | railsbob | 2009-08-09 | 1 | -0/+4 | |
| | | | | | | [#2934 state:committed] Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net> | |||||
* | fix schema_dumper_test for Oracle as it supports precision up to 38 | Raimonds Simanovskis | 2009-08-06 | 1 | -1/+6 | |
| | ||||||
* | added additional objects necessary for OracleAdapter specific tests | Raimonds Simanovskis | 2009-08-06 | 1 | -3/+21 | |
| | | | | | if OracleAdapter is used then use VARCHAR2(4000) instead of CLOB datatype as CLOB data type has many limitations in Oracle SELECT WHERE clause which causes many unit test failures | |||||
* | Add simple support for ActiveModel's StateMachine for ActiveRecord | Joshua Peek | 2009-08-04 | 1 | -0/+7 | |
| | ||||||
* | Add primary_key option to belongs_to association | Szymon Nowak | 2009-07-15 | 1 | -0/+7 | |
| | | | | | | [#765 state:committed] Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net> | |||||
* | Ensure hm:t#create respects source associations hash conditions [#2090 ↵ | mattbauer | 2009-06-21 | 1 | -0/+1 | |
| | | | | | | state:resolved] Signed-off-by: Pratik Naik <pratiknaik@gmail.com> | |||||
* | Schema dumper now records scale 0 decimal columns as decimal not integer. | Giles Alexander | 2009-06-01 | 1 | -0/+1 | |
| | | | | | | | | | | The schema dumper would dump out any decimal or numeric column that had a zero scale as an integer column. This will cause problems for very large precision columns on some DBMSs, particularly PostgreSQL. It also looks strange to see your column change type after moving through schema.rb. Signed-off-by: Michael Koziarski <michael@koziarski.com> [#2741 state:committed] | |||||
* | Fixed limited eager loading associations with numbers in the name [#2668 ↵ | Benjamin Floering | 2009-05-18 | 1 | -0/+1 | |
| | | | | | | state:resolved] Signed-off-by: Pratik Naik <pratiknaik@gmail.com> | |||||
* | replace the aaa_create_tables_test hack with loading test database schema in ↵ | Mislav Marohnić | 2009-05-17 | 1 | -1/+4 | |
| | | | | | | the test helper [#2663 state:resolved] Signed-off-by: Joshua Peek <josh@joshpeek.com> | |||||
* | Revert "Fixed bug with polymorphic has_one :as pointing to an STI record" | Jeremy Kemper | 2009-05-11 | 1 | -2/+1 | |
| | | | | | | [#2594 state:open] This reverts commit 99c103be1165da9c8299bc0977188ecf167e06a5. |