aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord
Commit message (Collapse)AuthorAgeFilesLines
* Update Chu's name in changelogsJeremy Kemper2007-12-101-2/+2
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8349 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Update Fred's name in changelogsJeremy Kemper2007-12-101-1/+1
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8348 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* post.comments.reload returns the association rather than the result of ↵Jeremy Kemper2007-12-102-14/+22
| | | | | | load_target. Closes #10438 [Fred Cheung] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8347 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Document the validates class method. Closes #10216 [Farley Knight]Jeremy Kemper2007-12-101-1/+27
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8345 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Be careful not to reference ActiveRecord if it isn't loaded, fixing rake ↵Jeremy Kemper2007-12-091-1/+6
| | | | | | test when you're working without a database. [eedn] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8339 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Make ready for 2.0.1David Heinemeier Hansson2007-12-072-2/+2
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8330 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Removed query cache rescue as it could cause code to be run twice (closes ↵David Heinemeier Hansson2007-12-072-2/+5
| | | | | | #10408) [DHH] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8329 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Anchor DateTimeTest to fixed DateTime instead of a variable value based on ↵Geoff Buesing2007-12-072-3/+7
| | | | | | Time.now#advance#to_datetime. Works around issue on 64-bit platforms with Ruby's Time#to_datetime respecting fractional seconds, and database adapters not respecting them for DateTimes, throwing off before-and-after-save equality test. References #10080, #10073 git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8326 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fixed that the Query Cache should just be ignored if the database is ↵David Heinemeier Hansson2007-12-062-0/+4
| | | | | | misconfigured (so that the "About your applications environment" works even before the database has been created) [DHH] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8325 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* The test task stops with a warning if you have pending migrations. Closes ↵Jeremy Kemper2007-12-061-0/+4
| | | | | | #10377. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8324 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Preparing for release shortlyDavid Heinemeier Hansson2007-12-063-8/+5
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8321 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fixed that the truncation of strings longer than 50 chars should use inspect ↵David Heinemeier Hansson2007-12-063-4/+6
| | | | | | so newlines etc are escaped (closes #10385) [norbert] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8319 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fix eager association test. Closes #10381 [alexey]Jeremy Kemper2007-12-051-1/+2
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8315 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fixed that habtm associations should be able to set :select as part of their ↵David Heinemeier Hansson2007-12-052-30/+4
| | | | | | definition and have that honored [DHH] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8313 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fixed that habtm associations should be able to set :select as part of their ↵David Heinemeier Hansson2007-12-052-0/+7
| | | | | | definition and have that honored [DHH] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8309 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Document how the :include option can be used in Calculations::calculate. ↵Marcel Molina2007-12-052-0/+4
| | | | | | Closes #7446 [adamwiggins, ultimoamore] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8306 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fix typo in documentation for polymorphic associations w/STI. Closes #7461 ↵Marcel Molina2007-12-052-2/+4
| | | | | | [johnjosephbachir] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8305 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Reveal that the type option in migrations can be any supported column type ↵Marcel Molina2007-12-052-1/+8
| | | | | | for your database but also include caveat about agnosticism. Closes #7531 [adamwiggins, mikong] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8304 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fix typos (closes #10378)David Heinemeier Hansson2007-12-056-6/+6
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8301 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* More complete documentation for find_by_sql. Closes #7912 [fearoffish]Marcel Molina2007-12-052-3/+25
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8298 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Document API for exists?'s parameter and provide examples of usage. Closes ↵Marcel Molina2007-12-052-3/+14
| | | | | | #7913 [fearoffish] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8297 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Document API for create's attributes parameter and provide examples. Closes ↵Marcel Molina2007-12-052-2/+13
| | | | | | #7915 [fearoffish] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8296 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Documentation for find incorrectly omits the :conditions option from various ↵Marcel Molina2007-12-052-4/+6
| | | | | | examples. Closes #7923 [mattwestcott] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8295 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Document options and add examples for update. Closes #7985 [fearoffish]Marcel Molina2007-12-052-6/+12
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8293 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Document options and add examples for delete. Closes #7986 [fearoffish]Marcel Molina2007-12-052-2/+20
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8292 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Document options and add examples for destroy. Closes #7988 [fearoffish]Marcel Molina2007-12-052-2/+21
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8291 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Document options and add examples for update_all. Closes #7990 [fearoffish]Marcel Molina2007-12-052-5/+22
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8290 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Document options for update_counters. Closes #8091 [fearoffish]Marcel Molina2007-12-052-0/+14
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8289 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Add documentation about the virtual attribute added by ↵Marcel Molina2007-12-052-3/+8
| | | | | | validates_confirmation_of and its behavior. Closes #8815 [JEG2, matt, kampers] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8288 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Add documentation for freeze and readonly related methods. Closes #8878 ↵Marcel Molina2007-12-052-4/+9
| | | | | | [pelargir, jeremymcanally] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8286 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Document the timestamps schema definition method. Closes #9000 [mikong]Marcel Molina2007-12-052-0/+4
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8285 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Give examples for what tables should be called for models inside a module ↵Marcel Molina2007-12-052-3/+14
| | | | | | namespace. Closes #10288 [scott_willson] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8282 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Document the :message option for validates_associated. Closes #10357 [dylans]Marcel Molina2007-12-052-0/+3
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8281 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Document automatically generated predicate methods for attributes. Closes ↵Marcel Molina2007-12-052-0/+16
| | | | | | #10373 [chuyeow] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8280 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Try againDavid Heinemeier Hansson2007-12-051-1/+1
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8273 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* MySQL: we can't distinguish a fake 0 default in 4.xJeremy Kemper2007-12-051-1/+2
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8272 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fix that options[:from] table names should never be quoted [DHH]David Heinemeier Hansson2007-12-052-1/+12
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8270 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Copy the cache tooDavid Heinemeier Hansson2007-12-031-0/+1
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8260 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Added ActiveRecord::Base#becomes to turn a record into one of another class ↵David Heinemeier Hansson2007-12-033-1/+24
| | | | | | (mostly relevant for STIs) [DHH] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8259 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fixed that to_xml should not automatically pass :procs to associations ↵David Heinemeier Hansson2007-12-033-29/+63
| | | | | | included with :include (closes #10162) [chuyeow] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8258 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fix documentation typo introduced in [8250]. Closes #10339 [Henrik N]Marcel Molina2007-12-022-1/+3
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8256 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Handle 8.1 default formatting. Closes #10333 [Tim Pope]Jeremy Kemper2007-12-021-0/+3
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8254 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Warn users about the race condition in validates_uniqueness_of. [Koz]Michael Koziarski2007-12-011-0/+4
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8250 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Removed documentation for the removed rollback! method on transactions and ↵Tobias Lütke2007-11-291-12/+2
| | | | | | mention ActiveRecord::Rollback [cody] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8240 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Make reset return nil when using a dangling belongs_to association. Current ↵Michael Koziarski2007-11-292-1/+18
| | | | | | behaviour is to return false which can be confusing. Closes #10293 [fcheung] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8236 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Prep for RC2David Heinemeier Hansson2007-11-293-3/+3
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8233 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* attr_protected and _accessible use sets of strings instead of arrays of ↵Jeremy Kemper2007-11-282-8/+16
| | | | | | symbols internally. Closes #10300. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8231 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* attr_readonly uses a set of strings instead of an array of symbols ↵Jeremy Kemper2007-11-283-4/+4
| | | | | | internally. References #10300. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8230 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Foxy fixtures: support single-table inheritance. Closes #10234.Jeremy Kemper2007-11-266-2/+37
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8219 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Foxy fixtures: allow mixed usage to make migration easier and more ↵Jeremy Kemper2007-11-2611-22/+84
| | | | | | attractive. Closes #10004. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8218 5ecf4fe2-1ee6-0310-87b1-e25e094e27de