aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord
Commit message (Collapse)AuthorAgeFilesLines
...
* Unit test fixes for postgresql.Michael Koziarski2006-03-152-3/+5
| | | | | | | | Allow to_xml tests to pass in time zones other than CST. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3870 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Correct syntax error in postgresql schema definitionMichael Koziarski2006-03-151-1/+1
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3868 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Catch FixtureClassNotFound when using instantiated fixtures on a fixture ↵Rick Olson2006-03-143-3/+7
| | | | | | that has no ActiveRecord model [Rick Olson] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3866 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Allow ordering of calculated results and/or grouped fields in calculations ↵Rick Olson2006-03-143-0/+14
| | | | | | [solo@gatelys.com] closes #4228 git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3865 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Dynamically set allow_concurrency. Closes #4044.Jeremy Kemper2006-03-135-31/+78
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3862 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Passing commentDavid Heinemeier Hansson2006-03-101-1/+1
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3835 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Added options to control the :only/:except for included associations on ↵David Heinemeier Hansson2006-03-102-7/+22
| | | | | | Base#to_xml [DHH] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3832 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Added association inclusion in to_xml [DHH]David Heinemeier Hansson2006-03-103-15/+111
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3831 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fixed to_xml across the board to use nice indention, better skip_attributes ↵David Heinemeier Hansson2006-03-093-0/+79
| | | | | | workings, no type on strings, and cleaned tests [DHH] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3829 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fix counter cache setting in belongs-to proxyJamis Buck2006-03-091-1/+1
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3828 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Add suppress_messages to migrations, to temporarily turn off verbose messagesJamis Buck2006-03-091-0/+8
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3827 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* a few more tests for the custom counter_cache naming codeJamis Buck2006-03-092-18/+9
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3826 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Allow counter_cache to accept a column nameJamis Buck2006-03-095-14/+42
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3825 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* format fix for locking [Michael Koziarski]Michael Koziarski2006-03-093-5/+10
| | | | | | | Add documentation for :dependent on associations. [robby@planetargon.com] Closes #4151 git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3822 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Allow set_fixture_class to take Classes instead of strings for a class in a ↵Rick Olson2006-03-063-8/+20
| | | | | | module. Raise FixtureClassNotFound if a fixture can't load. [Rick Olson] closes #4095 git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3804 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fix quoting of inheritance column for STI eager loading #4098 [Jonathan ↵Rick Olson2006-03-062-7/+9
| | | | | | Viney <jonathan@bluewire.net.nz>] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3790 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* slight change to eager associations table aliasing: use class_reflection, ↵Rick Olson2006-03-062-3/+3
| | | | | | like 'post_comments' or 'tree_children' git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3788 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* added assert_queries for the AR test suiteRick Olson2006-03-052-2/+13
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3784 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Doc fixesDavid Heinemeier Hansson2006-03-051-1/+4
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3782 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Doc fixesDavid Heinemeier Hansson2006-03-051-3/+4
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3780 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fixed eager loading problems with single-table inheritance [Rick Olson] ↵David Heinemeier Hansson2006-03-0510-63/+144
| | | | | | Added smarter table aliasing for eager associations for multiple self joins [Rick Olson] (closes #3580) git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3776 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Added cascading eager loading that allows for queries like Author.find(:all, ↵David Heinemeier Hansson2006-03-044-138/+349
| | | | | | :include=> { :posts=> :comments }), which will fetch all authors, their posts, and the comments belonging to those posts in a single query (using LEFT OUTER JOIN) #3913 [anna@wota.jp] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3769 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Make counter cache work when replacing an association (closes #3245). Thanks ↵Jamis Buck2006-03-044-0/+53
| | | | | | for the patch! git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3762 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Make migrations verboseJamis Buck2006-03-043-5/+130
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3760 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fixed that Date was in incorrect format in tasks.yml (closes #4072) ↵David Heinemeier Hansson2006-03-041-2/+2
| | | | | | [mlaster@metavillage.com] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3758 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Make counter_cache work with polymorphic belongs_toJamis Buck2006-03-045-13/+26
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3756 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fixed that calling HasOneProxy#build_model repeatedly would cause saving to ↵David Heinemeier Hansson2006-03-033-1/+12
| | | | | | happen (closes #4058) [anna@wota.jp] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3753 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* fix unreplaced class varJeremy Kemper2006-03-021-1/+1
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3747 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Revert allow_concurrency change for better testing. Retrieve_connection in ↵Jeremy Kemper2006-03-022-2/+3
| | | | | | two steps to avoid side-effect bug (yuk). git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3745 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* More docs for observers (closes #3996) [Robby Russel]David Heinemeier Hansson2006-03-021-1/+21
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3744 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* No longer needed (closes #4017)David Heinemeier Hansson2006-03-021-0/+0
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3742 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Doc fix (closes #4014) [thijs@fngtps.com]David Heinemeier Hansson2006-03-021-1/+1
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3741 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Catch requirement of Sybase adapter, if we cant, dont have itDavid Heinemeier Hansson2006-03-021-2/+6
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3737 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Dont require sybase unless you try to connectDavid Heinemeier Hansson2006-03-021-1/+2
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3736 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Added Sybase database adapter that relies on the Sybase Open Client bindings ↵David Heinemeier Hansson2006-03-021-0/+599
| | | | | | (see http://raa.ruby-lang.org/project/sybase-ctlib) (closes #3765) [John Sheets] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3735 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Added Sybase database adapter that relies on the Sybase Open Client bindings ↵David Heinemeier Hansson2006-03-0213-12/+295
| | | | | | (see http://raa.ruby-lang.org/project/sybase-ctlib) (closes #3765) [John Sheets] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3734 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* (duh :)Jeremy Kemper2006-03-011-1/+1
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3732 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Typo in stale thread removal.Jeremy Kemper2006-03-011-1/+1
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3731 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Clear stale, cached connections left behind by defunct threads. Eliminate ↵Jeremy Kemper2006-03-013-77/+112
| | | | | | duplicate connection cache. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3729 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* CHANGED DEFAULT: set ActiveRecord::Base.allow_concurrency to false. Most AR ↵Jeremy Kemper2006-03-012-4/+6
| | | | | | usage is in single-threaded applications. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3728 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Make calculations typecasty! (closes #4016) [Rick Olson]David Heinemeier Hansson2006-03-012-26/+76
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3722 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Renamed the "oci" adapter to "oracle", but kept the old name as an alias ↵David Heinemeier Hansson2006-03-0117-65/+83
| | | | | | (closes #4017) [schoenm@earthlink.net] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3718 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Make #save return true on success, even if locking is enabled (closes #4015) ↵David Heinemeier Hansson2006-03-011-16/+16
| | | | | | [schoenm@earthlink.net] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3716 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fixed testsDavid Heinemeier Hansson2006-02-282-8/+6
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3708 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fixed that Base.save should always return false if the save didn't succeed, ↵David Heinemeier Hansson2006-02-283-27/+23
| | | | | | including if it has halted by before_save's (closes #1861, #2477) [DHH] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3707 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Make rake load_fixtures work with the new, flexible, fixtures api. [Rick ↵Michael Koziarski2006-02-281-1/+1
| | | | | | Olson]. Closes #3995 git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3706 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Add more documentation for Reflection. [robby@planetargon.com]. Closes #4001Michael Koziarski2006-02-281-1/+4
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3705 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Add missing fixtures for #3937.Jeremy Kemper2006-02-283-1/+14
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3700 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Added new column to all db definitions. Where, oh where, is our hereo that ↵David Heinemeier Hansson2006-02-2813-0/+46
| | | | | | will convert all the legacy fixture schemas to schema.rb? (closes #3993) [Bob Silva] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3695 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Change Fixtures.create_fixtures arity to be backwards compatibleNicholas Seckar2006-02-281-1/+1
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3694 5ecf4fe2-1ee6-0310-87b1-e25e094e27de