aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test
Commit message (Collapse)AuthorAgeFilesLines
* removing unused variablesAaron Patterson2010-11-225-10/+5
|
* Removed ids_in_list_limit in favor of in_clause_length defined in ↵Alex Rothenberg2010-11-231-7/+7
| | | | database_limits.rb
* class inheritable attributes is used no more! all internal use of class ↵Josh Kalderimis2010-11-201-4/+4
| | | | | | inheritable has been changed to class_attribute. class inheritable attributes has been deprecated. Signed-off-by: José Valim <jose.valim@gmail.com>
* do not require ruby-debug automatically. please require it if you have ↵Aaron Patterson2010-11-191-5/+0
| | | | declared it as a dependency
* fisting typeo, thanks @vinibaggioAaron Patterson2010-11-191-1/+1
|
* fisting my spelling errorsAaron Patterson2010-11-191-6/+6
|
* testing a non-invertible migration caseAaron Patterson2010-11-191-3/+23
|
* invertable migrations are workingAaron Patterson2010-11-191-5/+0
|
* command recorder will record commands sent to a delegate objectAaron Patterson2010-11-191-0/+22
|
* adding invertable migration testAaron Patterson2010-11-191-0/+42
|
* IrreversibleMigration is raised if we cannot invert the commandAaron Patterson2010-11-191-0/+7
|
* commands are reversedAaron Patterson2010-11-191-0/+7
|
* partial implementation of the command recorderAaron Patterson2010-11-191-0/+72
|
* testing multiple ORd queriesAaron Patterson2010-11-181-0/+12
|
* removing space errorsAaron Patterson2010-11-181-1/+1
|
* Adapters can specify maximum number of ids they support in a list of expressionsAlex Rothenberg2010-11-181-0/+52
| | | | | (default is nil meaning unlimited but Oracle imposes a limit of 1000) Limit is used to make multiple queries when preloading associated has_many or habtm records
* When use where more than once on the same column, relation doesn't do an ↵Santiago Pastorino2010-11-171-0/+9
| | | | 'or' or 'in' with the values
* Fix bug with 0bb85ed9ffa9808926b46e8f7e59cab5b85ac19f which missed out a ↵Jon Leighton2010-11-171-1/+2
| | | | fixtures declaration in cascaded_eager_loading_test.rb
* testing instance based migrationsAaron Patterson2010-11-171-0/+38
|
* schema migrations work as instancesAaron Patterson2010-11-171-0/+1
|
* converted migrations to support instance methodsAaron Patterson2010-11-171-4/+4
|
* fixing assertions so error messages will be more helpfulAaron Patterson2010-11-171-4/+4
|
* removing many unused variablesAaron Patterson2010-11-1615-30/+23
|
* reloading an association will properly set attributes of instantiated ↵Aaron Patterson2010-11-161-0/+21
| | | | objects. Thanks Brian Palmer [#5802 state:resolved]
* 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.