aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord
Commit message (Collapse)AuthorAgeFilesLines
* 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
* Speed up class -> connection caching and stale connection verification. ↵Jeremy Kemper2006-02-273-31/+97
| | | | | | Closes #3979. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3693 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fix delerious changelogNicholas Seckar2006-02-271-1/+1
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3691 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Add set_fixture_class to allow the use of table name accessors with models ↵Nicholas Seckar2006-02-277-16/+66
| | | | | | which use set_default_name. Closes #3935 git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3690 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Only load .yml files in sub-directoriesDavid Heinemeier Hansson2006-02-271-1/+1
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3685 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Added that fixtures to placed in subdirectories of the main fixture files ↵David Heinemeier Hansson2006-02-274-3/+29
| | | | | | are also loaded (closes #3937) [dblack@wobblini.net] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3683 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* doc fix (closes #3972) [robby]David Heinemeier Hansson2006-02-271-7/+7
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3682 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Dont require association classes before theyre supposed to be used (closes ↵David Heinemeier Hansson2006-02-272-15/+2
| | | | | | #3976) [Rick Olson] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3681 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Define attribute query methods to avoid method_missing calls. Closes #3677.Jeremy Kemper2006-02-273-7/+13
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3679 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* CHANGED DEFAULT: ActiveRecord::Base.schema_format is now :ruby by default ↵David Heinemeier Hansson2006-02-271-1/+1
| | | | | | instead of :sql. This means that we'll assume you want to live in the world of db/schema.rb where the grass is green and the girls are pretty. If your schema contains un-dumpable elements, such as constraints or database-specific column types, you just got an invitation to either 1) patch the dumper to include foreign key support, 2) stop being db specific, or 3) just change the default in config/environment.rb to config.active_record.schema_format = :sql -- we even include an example for that on new Rails skeletons now. Brought to you by the federation of opinionated framework builders! [DHH] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3678 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Example for validates_presence_of method (closes #3966) [Robby Russell]David Heinemeier Hansson2006-02-261-1/+7
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3677 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* ActiveRecord::Base.remove_connection explicitly closes database connections ↵Jeremy Kemper2006-02-267-14/+45
| | | | | | and doesn't corrupt the connection cache. Introducing the disconnect! instance method for the PostgreSQL, MySQL, and SQL Server adapters; implementations for the others are welcome. References #3591. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3674 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* fix method scoping test for postgresqlJeremy Kemper2006-02-261-1/+1
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3673 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Added support for nested scopes (closes #3407) [anna@wota.jp]David Heinemeier Hansson2006-02-263-33/+248
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3671 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Aesthetics, babyDavid Heinemeier Hansson2006-02-261-3/+5
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3658 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fixed db2 connection with empty user_name and auth options (closes #3622) ↵David Heinemeier Hansson2006-02-262-1/+3
| | | | | | [phurley@gmail.com] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3655 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fixed validates_length_of to work on UTF-8 strings by using characters ↵David Heinemeier Hansson2006-02-254-21/+163
| | | | | | instead of bytes (closes #3699) [Masao Mutoh] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3654 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Compatibility patches for calculationsDavid Heinemeier Hansson2006-02-252-34/+32
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3653 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Updated docs (closes #3799) [ruby@bobsilva.com]David Heinemeier Hansson2006-02-251-0/+10
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3651 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fixed that reflections would bleed across class boundaries in single-table ↵David Heinemeier Hansson2006-02-254-4/+10
| | | | | | inheritance setups (closes #3796) [lars@pind.com] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3650 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Makes ActiveRecord::Schema respect AR::Base.table_name_prefix (closes #3848) ↵David Heinemeier Hansson2006-02-251-2/+2
| | | | | | [rubyonrails@atyp.de] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3648 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Documentation fixes (closes #3838)David Heinemeier Hansson2006-02-253-3/+3
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3647 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Added calculations: Base.count, Base.average, Base.sum, Base.minimum, ↵David Heinemeier Hansson2006-02-256-55/+347
| | | | | | Base.maxmium, and the generic Base.calculate. All can be used with :group and :having. Calculations and statitics need no longer require custom SQL. #3958 [Rick Olson] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3646 5ecf4fe2-1ee6-0310-87b1-e25e094e27de