aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord
Commit message (Collapse)AuthorAgeFilesLines
...
* Added Base.save! that attempts to save the record just like Base.save but ↵David Heinemeier Hansson2005-04-183-0/+16
| | | | | | will raise a InvalidRecord exception instead of returning false if the record is not valid [After much pestering from Dave Thomas] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1215 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Speeded up eager loading a whole bunchDavid Heinemeier Hansson2005-04-184-52/+52
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1212 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Updated documentation here and thereDavid Heinemeier Hansson2005-04-183-22/+22
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1210 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Added documentation for new Base.find API and eager association loadingDavid Heinemeier Hansson2005-04-183-7/+77
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1209 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fixed PostgreSQL usage of fixtures with regards to public schemas and table ↵David Heinemeier Hansson2005-04-183-4/+6
| | | | | | names with dots #962 [gnuman1@gmail.com] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1206 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fixed that fixtures were being deleted in the same order as inserts causing ↵David Heinemeier Hansson2005-04-1811-7/+107
| | | | | | FK errors #890 [andrew.john.peters@gmail.com] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1205 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Move nodoc to the individual methodsDavid Heinemeier Hansson2005-04-181-4/+4
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1204 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Refactored a bitDavid Heinemeier Hansson2005-04-181-5/+1
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1202 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Changed habtm eager loading to also use joinsDavid Heinemeier Hansson2005-04-184-33/+21
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1201 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fixes for postgresql testing #1129, #1130, #1131David Heinemeier Hansson2005-04-186-17/+23
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1199 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Made the dynamic finders use the new find API and updated the examples here ↵David Heinemeier Hansson2005-04-174-22/+47
| | | | | | and there git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1196 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fixes a problem with the SQL Adapter which was resulting in IDENTITY_INSERT ↵David Heinemeier Hansson2005-04-172-2/+3
| | | | | | not being set to ON when it should be #1104 [adelle] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1192 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* SqlServer fixtures - CategoriesPostsDavid Heinemeier Hansson2005-04-171-1/+1
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1191 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Added the option to specify the acceptance string in validates_acceptance_of ↵David Heinemeier Hansson2005-04-173-3/+18
| | | | | | #1106 [caleb@aei-tech.com] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1188 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Added acts_as_nested_set #1000 [wschenk]David Heinemeier Hansson2005-04-171-0/+184
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1186 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Added acts_as_nested_set #1000 [wschenk]David Heinemeier Hansson2005-04-176-0/+270
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1185 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Added insert_at(position) to acts_as_list #1083 [DeLynnB]David Heinemeier Hansson2005-04-173-7/+57
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1179 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Cleaned up validates_length_of by calling existing validations on the common ↵David Heinemeier Hansson2005-04-171-29/+17
| | | | | | stuff #1108 [caleb@aei-tech.com] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1178 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Dont prefix on updates and deletes, only selectsDavid Heinemeier Hansson2005-04-171-1/+1
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1177 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Made migrations create InnoDB tables per defaultDavid Heinemeier Hansson2005-04-162-2/+6
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1168 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Honor the order in the new finderDavid Heinemeier Hansson2005-04-151-0/+1
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1167 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Dont initialize the association proxy for nil recordsDavid Heinemeier Hansson2005-04-143-0/+12
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1165 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Order by is no longer a guarenteeDavid Heinemeier Hansson2005-04-141-1/+1
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1164 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Qualify the ids used such that eager loading can avoid ambigious keysDavid Heinemeier Hansson2005-04-134-6/+6
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1163 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Removed the default order by id on has_and_belongs_to_many queries as it ↵David Heinemeier Hansson2005-04-132-7/+15
| | | | | | could kill performance on large sets (you can still specify by hand with :order) git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1162 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fixed pagination to work with joins #1034 [scott@sigkill.org]David Heinemeier Hansson2005-04-131-1/+1
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1159 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fixed that Base.silence should restore the old logger level when done, not ↵David Heinemeier Hansson2005-04-132-1/+4
| | | | | | just set it to DEBUG #1084 [yon@milliped.com] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1155 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Added KLOC counter for AR and AP. Combined theyre at ~9KLOCDavid Heinemeier Hansson2005-04-131-0/+24
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1153 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fixed boolean saving on Oracle #1093 [mparrish@pearware.org]David Heinemeier Hansson2005-04-132-2/+4
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1150 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Address parsing failed when the "to" (or "cc", or whatever) was an array. It ↵David Heinemeier Hansson2005-04-131-4/+4
| | | | | | was also too restrictive in the formats of the addresses #1097 [Jamis] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1149 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Moved build_association and create_association for has_one and belongs_to ↵David Heinemeier Hansson2005-04-126-56/+71
| | | | | | out of deprecation as they work when the association is nil unlike association.build and association.create, which require the association to be already in place #864 git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1146 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* No conditions relevant hereDavid Heinemeier Hansson2005-04-111-1/+1
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1145 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Doc changesDavid Heinemeier Hansson2005-04-101-0/+5
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1141 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Added rollbacks of transactions if they're active as the dispatcher is ↵David Heinemeier Hansson2005-04-102-0/+9
| | | | | | killed gracefully (TERM signal) #1054 [Leon Bredt] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1136 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fixed db schemaDavid Heinemeier Hansson2005-04-101-1/+2
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1133 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Added support for has_and_belongs_to_many associations in eager loading ↵David Heinemeier Hansson2005-04-1020-76/+226
| | | | | | #1064 [Dan Peterson] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1132 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Made eager loading work with inheritance hierarchies #1065 [Ryan Carver]David Heinemeier Hansson2005-04-1016-9/+121
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1131 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Updated docs #1070David Heinemeier Hansson2005-04-101-11/+12
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1128 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Added quoting of column names for fixtures #997 [jcfischer@gmail.com]David Heinemeier Hansson2005-04-0717-5/+66
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1110 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fixed check_box with postgresql booleans is more work now again #995David Heinemeier Hansson2005-04-071-1/+1
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1109 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fixed counter_sql when no records exist in database for PostgreSQL (would ↵David Heinemeier Hansson2005-04-074-2/+17
| | | | | | give error, not 0) #1039 [Caleb Tennis] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1104 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Moved to new serverDavid Heinemeier Hansson2005-04-072-0/+21
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1102 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Use :foreign_key option if specified on the associationDavid Heinemeier Hansson2005-04-051-2/+2
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1096 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Dont include multiple versions of the same association objectDavid Heinemeier Hansson2005-04-041-1/+1
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1087 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Prefix primary key with table name so it works as part of a joined fetchDavid Heinemeier Hansson2005-04-041-2/+2
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1086 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* More eager fixesDavid Heinemeier Hansson2005-04-032-4/+2
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1084 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Made eager loading work even moreDavid Heinemeier Hansson2005-04-0311-50/+76
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1083 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Allow order, conditions, and joins in finds that include associationsDavid Heinemeier Hansson2005-04-033-5/+17
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1080 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Only include associations when the relevant rows have contentDavid Heinemeier Hansson2005-04-031-1/+1
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1079 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Added testsDavid Heinemeier Hansson2005-04-031-0/+278
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1078 5ecf4fe2-1ee6-0310-87b1-e25e094e27de