aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test
Commit message (Collapse)AuthorAgeFilesLines
* Merge remote branch 'rails/master' into identity_mapEmilio Tagua2010-12-2049-213/+761
|\ | | | | | | | | | | | | | | Conflicts: activerecord/lib/active_record/associations/association_proxy.rb activerecord/lib/active_record/autosave_association.rb activerecord/lib/active_record/base.rb activerecord/lib/active_record/persistence.rb
| * ActiveRecord::Base.joins should allow single nil argument [#6181 state:resolved]Piotr Sarnacki2010-12-161-0/+4
| |
| * Fix various issues with the :primary_key option in :through associations ↵Jon Leighton2010-12-154-0/+34
| | | | | | | | [#2421 state:resolved]
| * Fix problem with duplicated records when a :uniq :through association is ↵Jon Leighton2010-12-152-2/+15
| | | | | | | | preloaded [#2447 state:resolved]
| * Replace rudimentary named_scope with scope. [#6052 state:resolved]Pavel Gorbokon2010-12-153-25/+25
| | | | | | | | | | | | | | * rename method names (actually in tests) * rename instance variable @_named_scopes_cache to @_scopes_cache * rename references in doc comments * don't touch CHANGELOG :)
| * Provide test for #4840: to_xml doesn't work in such case: ↵Franck Verrot2010-12-151-0/+6
| | | | | | | | Event.select('title as t').to_xml
| * test for eager load of has_one association with condition on the through tablePivotal Labs2010-12-161-1/+9
| |
| * Verify that creating a has_many through record where there is a ↵Jon Leighton2010-12-164-1/+22
| | | | | | | | default_scope on the join model works correctly (creates the join record with the default scope applied)
| * Respect the default_scope on a join model when reading a through associationJon Leighton2010-12-165-2/+25
| |
| * Fix hm:t to self table aliasing in construct_scopeErnie Miller2010-12-162-1/+2
| |
| * add test which fails for has_many through self join [#4361 state:open]Joe Hannon2010-12-161-0/+7
| |
| * fixing whitespace errorsAaron Patterson2010-12-161-4/+4
| |
| * persisted? should be able to return a truthy objectAaron Patterson2010-12-161-8/+8
| |
| * Only call save on belongs_to associations if the record has changed or any ↵Chiel Wester2010-12-161-0/+11
| | | | | | | | | | | | nested associations have changed (resolves #3353) Signed-off-by: José Valim <jose.valim@gmail.com>
| * preheating cache so that tests can run in isolationAaron Patterson2010-12-091-0/+5
| |
| * Simplifies observer implementation [#6065 state:resolved]Robert Pankowecki (Gavdi)2010-12-091-0/+16
| |
| * Fix test on finding migrations from 2 pathsPiotr Sarnacki2010-12-091-5/+7
| | | | | | | | Signed-off-by: José Valim <jose.valim@gmail.com>
| * Merge remote branch 'drogus/dummy_tasks'José Valim2010-12-091-0/+12
| |\ | | | | | | | | | Signed-off-by: José Valim <jose.valim@gmail.com>
| | * Allow to run migrations from more than one directoryPiotr Sarnacki2010-12-091-0/+12
| | |
| * | Take into account current time zone when serializing datetime values [#6096 ↵Mike Dvorkin2010-12-091-0/+21
| | | | | | | | | | | | | | | | | | state:resolved] Signed-off-by: José Valim <jose.valim@gmail.com>
| * | Ensure that boolean false is properly serialized [#6079 state:resolved]Aditya Sanghi2010-12-081-0/+16
| | |
| * | Setting the id of a belongs_to object updates all referenced objects [#2989 ↵Jeff Dean2010-12-081-0/+37
| |/ | | | | | | state:resolved]
| * not a responsibility for rails to testAaron Patterson2010-12-031-10/+0
| |
| * removing unused setupAaron Patterson2010-12-031-4/+0
| |
| * in the middle of refactoringAaron Patterson2010-12-0312-76/+56
| |
| * Doesn't need to sort, lets users of attribute_names sort them if they wantSantiago Pastorino2010-12-021-1/+1
| |
| * fixing space errorsAaron Patterson2010-12-021-3/+1
| |
| * adding a test for YAML round tripAaron Patterson2010-12-021-0/+9
| |
| * Work around a strange piece of Syck behaviour where it checks ↵Michael Koziarski2010-12-021-0/+11
| | | | | | | | | | | | Model#respond_to? before initializing the object. Things like YAML.load(YAML.dump(@post)) won't work without this.
| * rolling out migrated_at until I can fix the buildAaron Patterson2010-12-013-99/+7
| |
| * removing duplicate testAaron Patterson2010-12-011-37/+0
| |
| * should not to_s the possibly nil valueAaron Patterson2010-12-011-2/+2
| |
| * make sure we have a value in migrated_atAaron Patterson2010-12-011-1/+1
| |
| * not all databases return dates as stringsAaron Patterson2010-12-012-3/+3
| |
| * fixing tests and warningsAaron Patterson2010-12-012-2/+6
| |
| * tests mostly passJosh Susser2010-12-011-2/+3
| | | | | | | | | | adjust to work with instance-based migations migrated_at can't be null why must people have last names? it's killing me!
| * clear schema_migrations in Schema.defineJosh Susser2010-12-011-0/+11
| |
| * name in schema_migrations, migrations in schema dumpJosh Susser2010-12-013-8/+50
| |
| * record migration timestamp when migrations runJosh Susser2010-12-011-1/+48
| |
| * Add migrated_at column to schema_migrations table.Josh Susser2010-12-011-6/+30
| |
| * fix warnings, stop using global variablesAaron Patterson2010-11-302-3/+6
| |
| * isolating eager_loading? methodAaron Patterson2010-11-301-0/+11
| |
| * making sure scope_for_create value is cachedAaron Patterson2010-11-301-0/+12
| |
| * surrounding scope_for_create behaviorAaron Patterson2010-11-301-0/+14
| |
| * Ruby 1.8, how does it work?Aaron Patterson2010-11-301-6/+6
| |
| * testing combined nodes are not traversedAaron Patterson2010-11-301-0/+9
| |
| * adding more tests surrounding where_values_hashAaron Patterson2010-11-301-3/+19
| |
| * testing Relation#table_nameAaron Patterson2010-11-301-0/+21
| |
| * adding a test for ActiveRecord::RelationAaron Patterson2010-11-301-0/+56
| |
| * fix whitespace errorsAaron Patterson2010-11-301-2/+2
| |