aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test
Commit message (Collapse)AuthorAgeFilesLines
...
* | | | | | | | | Fix ActiveRecord calculations when grouped by multiple fieldsAlexandru Catighera2010-11-161-0/+13
| | | | | | | | |
* | | | | | | | | Create directory before copying migrations if it does not existPiotr Sarnacki2010-11-161-0/+15
| | | | | | | | |
* | | | | | | | | Models should be equals even after destroyedSantiago Pastorino2010-11-162-1/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | [#5978 state:committed]
* | | | | | | | | support finding by a ruby class [#5979 state:resolved]Aaron Patterson2010-11-151-0/+7
| | | | | | | | |
* | | | | | | | | adding more test coverage around finding with active record objectsAaron Patterson2010-11-151-0/+12
| | | | | | | | |
* | | | | | | | | use quoted id of single AR::Base objects in predicatesAaron Patterson2010-11-151-0/+6
| | | | | | | | |
* | | | | | | | | if association is already loaded and if a find operation is performed on the ↵Neeraj Singh2010-11-151-0/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | already loaded association list with an empty hash then do not perform another sql [#5972 state:resolved]
* | | | | | | | | fisting a bunch of unused variable warningsAaron Patterson2010-11-154-20/+16
| | | | | | | | |
* | | | | | | | | Fix bug where size of through association is not correct after adding a ↵Jason Cheow2010-11-141-0/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | has_many association (occurs only before main object has been reloaded). [#5968 state:committed] Signed-off-by: Santiago Pastorino <santiago@wyeworks.com>
* | | | | | | | | Finder gives a little bit more info on the lookup column (primary key)Franck Verrot2010-11-131-0/+10
| | | | | | | | |
* | | | | | | | | STI type is now updated when calling AR::Base.becomes on subclasses [#5953 ↵Franck Verrot2010-11-121-0/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | state:resolved]
* | | | | | | | | Fixed bug in active_record/nested_attributes where an empty string id caused ↵Santiago Pastorino2010-11-111-0/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | an ActiveRecord::RecordNotFound error. Found by [Ben Tillman] [#5638 state:committed] Signed-off-by: Santiago Pastorino <santiago@wyeworks.com>
* | | | | | | | | use persisted? instead of new_record? wherever possibleDavid Chelimsky2010-11-0916-132/+132
| |_|_|_|_|_|_|/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - persisted? is the API defined in ActiveModel - makes it easier for extension libraries to conform to ActiveModel APIs without concern for whether the extended object is specifically ActiveRecord [#5927 state:committed] Signed-off-by: Santiago Pastorino <santiago@wyeworks.com>
* | | | | | | | use column names as order by complex function parameters, fix for postgresql ↵Raimonds Simanovskis2010-11-071-12/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | adapter to correctly remove ASC/DESC Signed-off-by: Santiago Pastorino <santiago@wyeworks.com>
* | | | | | | | Fixes queries using limits and punctuation in order, removes order("col1, ↵Santiago Pastorino2010-11-053-4/+25
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | col2") usage in favor of order(["col1", "col2"}) [#4597 state:committed]
* | | | | | | | renaming exec in the mysql adapterAaron Patterson2010-11-051-13/+13
| | | | | | | |
* | | | | | | | renaming exec in the PG adapterAaron Patterson2010-11-052-11/+11
| | | | | | | |
* | | | | | | | converted exec to exec_query for sqliteAaron Patterson2010-11-052-15/+15
| | | | | | | |
* | | | | | | | ignoring certain SQL when using OracleAaron Patterson2010-11-031-0/+4
| | | | | | | |
* | | | | | | | select goes through exec(), so no method chaining for query countsAaron Patterson2010-11-031-12/+0
| | | | | | | |
* | | | | | | | use bind params in select with query monkeypatchAaron Patterson2010-11-031-2/+2
| | | | | | | |
* | | | | | | | Ensure save always updates timestamps when serialized attributes are presentPratik Naik2010-11-021-0/+14
| | | | | | | |
* | | | | | | | Add timestamps to TopicPratik Naik2010-11-023-6/+7
| |_|_|_|_|_|/ |/| | | | | |
* | | | | | | adding tests for #5234 and #5184. Tests were from Akira Matsuda. Thanks Akira!Aaron Patterson2010-10-302-0/+11
| | | | | | |
* | | | | | | Convert :primary_key in association to a string before comparing to column ↵Denis Odorcic2010-10-302-0/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | names, so that for example :primary_key => :another_pk works as well [#5605 state:resolved]
* | | | | | | Fix issues when including the same association multiple times and mixing ↵Ernie Miller2010-10-301-0/+26
| |_|_|_|_|/ |/| | | | | | | | | | | | | | | | | joins/includes together.
* | | | | | fisting test nameAaron Patterson2010-10-271-1/+1
| | | | | |
* | | | | | making query cache work with prepared statementsAaron Patterson2010-10-271-0/+6
| | | | | |
* | | | | | setting the authorized session clears the statement cacheAaron Patterson2010-10-261-0/+11
| | | | | |
* | | | | | add a session authorization setter to the pg connectionAaron Patterson2010-10-261-1/+8
| | | | | |
* | | | | | avoiding statement cache if there are no bind valuesAaron Patterson2010-10-261-0/+12
| | | | | |
* | | | | | bind substitution is working properlyAaron Patterson2010-10-261-0/+8
| | | | | |
* | | | | | bind parameters are now typecastAaron Patterson2010-10-261-0/+14
| | | | | |
* | | | | | basic bind parameters are workingAaron Patterson2010-10-261-0/+12
| | | | | |
* | | | | | initial exec() method is working in pg adapterAaron Patterson2010-10-261-0/+17
| | | | | |
* | | | | | one more mysql test left!Aaron Patterson2010-10-261-1/+1
| | | | | |
* | | | | | mysql tests are mostly passingAaron Patterson2010-10-262-3/+61
| | | | | |
* | | | | | refactoring testsAaron Patterson2010-10-261-36/+20
| | | | | |
* | | | | | type casting bound value based on column associated with valueAaron Patterson2010-10-261-0/+18
| | | | | |
* | | | | | exec returns an AR::ResultAaron Patterson2010-10-262-0/+43
| | | | | |
* | | | | | adding bind_values to relationsAaron Patterson2010-10-261-0/+9
| | | | | |
* | | | | | adding bind value substitutionAaron Patterson2010-10-261-0/+9
| | | | | |
* | | | | | reducing the number of parameters to select()Aaron Patterson2010-10-261-2/+2
| | | | | |
* | | | | | removing call to deprecated API, this test is outside AR responsibilitiesAaron Patterson2010-10-221-7/+0
| | | | | |
* | | | | | made a pass in AR's schema.rb to keep (most) create statements in ↵Xavier Noria2010-10-221-59/+60
| | | | | | | | | | | | | | | | | | | | | | | | lexicographic order, and fixed an FK
* | | | | | has_one maintains the association with separate after_create/after_updateXavier Noria2010-10-223-0/+65
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This way parent models can get their own after_create and after_update callbacks fired after has_one has done its job.
* | | | | | adding a test to ensure offsets with no limits will work [#5316 state:resolved]Aaron Patterson2010-10-201-0/+6
| | | | | |
* | | | | | removing unused variablesAaron Patterson2010-10-201-2/+2
| | | | | |
* | | | | | default scope merge where clauses [#5488 state:resolved]Jan2010-10-202-0/+18
| | | | | |
* | | | | | scopes can take an object that responds to `call`Aaron Patterson2010-10-192-0/+13
| | | | | |