aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord
Commit message (Collapse)AuthorAgeFilesLines
* Fixed that Active Record would throw Broken Pipe errors with FCGI when the ↵David Heinemeier Hansson2005-02-212-28/+53
| | | | | | MySQL connection timed out instead of reconnecting #428 [Nicholas Seckar] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@729 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Added options to specify an SSL connection for MySQL. Define the following ↵David Heinemeier Hansson2005-02-202-4/+8
| | | | | | attributes in the connection config (config/database.yml in Rails) to use it: sslkey, sslcert, sslca, sslcapath, sslcipher. To use SSL with no client certs, just set :sslca = /dev/null. http://dev.mysql.com/doc/mysql/en/secure-connections.html #604 [daniel@nightrunner.com] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@720 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Added automatic dropping/creating of test tables for running the unit tests ↵David Heinemeier Hansson2005-02-2028-5/+200
| | | | | | on all databases #587 [adelle@bullet.net.au] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@719 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fixed that find_by_* would fail when column names had numbers #670 [demetrius]David Heinemeier Hansson2005-02-192-1/+3
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@681 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fixed the SQL Server adapter on a bunch of issues #667 [DeLynn]David Heinemeier Hansson2005-02-192-50/+148
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@675 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Added validates_each that validates each specified attribute against a block ↵David Heinemeier Hansson2005-02-182-220/+384
| | | | | | #610 [bitsweat]. Added :allow_nil as an explicit option for validates_length_of, so unless that's set to true having the attribute as nil will also return an error if a range is specified as :within #610 [bitsweat] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@667 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fixed that the dynamic finder like find_all_by_something_boolean(false) ↵David Heinemeier Hansson2005-02-183-1/+13
| | | | | | didn't work #649 [lmarlow@yahoo.com] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@666 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fixed a bit to eager requiring of oracle bindings in oracle adapter #634David Heinemeier Hansson2005-02-181-1/+1
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@664 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Loading the Routes should happen in the environments #655David Heinemeier Hansson2005-02-171-0/+10
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@657 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Skip Active Record tests in Action Pack if the SQLite database cant be ↵David Heinemeier Hansson2005-02-173-3/+9
| | | | | | brought up git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@652 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Addded validation for validate all the associated objects before declaring ↵David Heinemeier Hansson2005-02-173-5/+28
| | | | | | failure with validates_associated #618 [Tim Bates]. Added that validates_* now accept blocks to perform validations #618 [Tim Bates] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@650 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* AR, AP, and AM should look for AS in sibling directory before trying ↵David Heinemeier Hansson2005-02-171-2/+6
| | | | | | RubyGems #648 git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@648 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fixed the verbosity of using the AR storeDavid Heinemeier Hansson2005-02-171-2/+9
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@639 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Call Active Support 0.9 until releaseDavid Heinemeier Hansson2005-02-151-1/+1
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@629 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* All libraries should link against the independent active supportDavid Heinemeier Hansson2005-02-151-9/+1
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@625 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Moved Active Support into its own gemDavid Heinemeier Hansson2005-02-157-28/+26
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@624 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fix test case for MySQL #598David Heinemeier Hansson2005-02-151-0/+1
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@619 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Small indentDavid Heinemeier Hansson2005-02-151-1/+1
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@613 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Added keyword-style approach to defining the custom relational bindings #545 ↵David Heinemeier Hansson2005-02-073-1/+132
| | | | | | [Jamis Buck] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@527 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fixed documentation snafus #575, #576, #577, #585David Heinemeier Hansson2005-02-0714-55/+55
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@525 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Added that the 'fixture :posts' syntax can be used for ↵David Heinemeier Hansson2005-02-071-2/+9
| | | | | | has_and_belongs_to_many fixtures where a model doesn't exist #572 [bitsweat] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@524 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Added an Oracle adapter that works with the Oracle bindings by Yoshida ↵David Heinemeier Hansson2005-02-0718-32/+558
| | | | | | (http://raa.ruby-lang.org/project/oracle/) #564 [Maik Schmidt] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@522 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Dont call id explicitly to do reloading that way we get rid of the warnings ↵David Heinemeier Hansson2005-02-072-11/+11
| | | | | | #583 [Tim Bates] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@521 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fixed Base#clone for use with PostgreSQL #565 [hanson@surgery.wisc.edu]David Heinemeier Hansson2005-02-073-4/+13
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@519 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Prepared for 0.9.5 releaseDavid Heinemeier Hansson2005-01-253-2/+3
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@515 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Updated documentation for serializeDavid Heinemeier Hansson2005-01-251-2/+0
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@513 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Updated documentation for serializeDavid Heinemeier Hansson2005-01-252-4/+5
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@512 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fixed dependency reloading by switching to a remove_const approach where all ↵David Heinemeier Hansson2005-01-252-2/+16
| | | | | | Active Records, Active Record Observers, and Action Controllers are reloading by undefining their classes. This enables you to remove methods in all three types and see the change reflected immediately and it fixes #539. This also means that only those three types of classes will benefit from the const_missing and reloading approach. If you want other classes (like some in lib/) to reload, you must use require_dependency to do it. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@511 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Added the option of supplying an array of ids and attributes to Base#update, ↵David Heinemeier Hansson2005-01-256-74/+81
| | | | | | so that multiple records can be updated at once (inspired by #526/Duane Johnson). Added the option of supplying an array of attributes to Base#create, so that multiple records can be created at once. Added that Base#delete and Base#destroy both can take an array of ids to delete/destroy #336. Added that has_many association build and create methods can take arrays of record data like Base#create and Base#build to build/create multiple records at once. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@504 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fixed documentation #538David Heinemeier Hansson2005-01-251-1/+1
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@503 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* The create and build methods are only available for has_one/belongs_to if an ↵David Heinemeier Hansson2005-01-251-2/+3
| | | | | | association already exist. It will not work when it's nil. Updated the documentation to reflect that. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@501 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@498 ↵David Heinemeier Hansson2005-01-241-0/+2
| | | | 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Added Base.update_collection that can update an array of id/attribute pairs, ↵David Heinemeier Hansson2005-01-242-1/+59
| | | | | | such as the ones produced by the recent added support for automatic id-based indexing for lists of items #526 [Duane Johnson] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@496 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Added ActiveRecord::Base.timestamps_gmt that can be set to true to make the ↵David Heinemeier Hansson2005-01-242-7/+14
| | | | | | automated timestamping use GMT instead of local time #520 [Scott Baron] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@491 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Added that update_all calls sanitize_sql on its updates argument, so stuff ↵David Heinemeier Hansson2005-01-243-1/+6
| | | | | | like MyRecord.update_all(['time = ?', Time.now]) works #519 [notahat] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@489 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fixed that the dynamic finders didnt treat nil as a "IS NULL" but rather "= ↵David Heinemeier Hansson2005-01-243-1/+28
| | | | | | NULL" case #515 [Demetrius] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@488 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fixed install.rb filesDavid Heinemeier Hansson2005-01-241-1/+10
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@487 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Added bind-named arrays for interpolating a group of ids or strings in ↵David Heinemeier Hansson2005-01-243-4/+23
| | | | | | conditions #528 [bitsweat] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@485 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Added that has_and_belongs_to_many associations with additional attributes ↵David Heinemeier Hansson2005-01-244-18/+54
| | | | | | also can be created between unsaved objects and only committed to the database when Base#save is called on the associator #524 [Eric Anderson] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@484 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fixed that records fetched with piggy-back attributes or through rich ↵David Heinemeier Hansson2005-01-243-2/+24
| | | | | | has_and_belongs_to_many associations couldn't be saved due to the extra attributes not part of the table #522 [Eric Anderson] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@483 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Added mass-assignment protection for the inheritance column -- regardless of ↵David Heinemeier Hansson2005-01-233-3/+17
| | | | | | a custom column is used or not git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@477 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fixed that association proxies would fail === tests like PremiumSubscription ↵David Heinemeier Hansson2005-01-233-0/+11
| | | | | | === @account.subscription git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@476 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* A few missing filesDavid Heinemeier Hansson2005-01-201-0/+12
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@468 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Replaced === checks with is_a? checks #502, #82 [Marcel Molina]David Heinemeier Hansson2005-01-204-7/+7
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@466 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fixed that column aliases didn't work as expected with the new MySql411 ↵David Heinemeier Hansson2005-01-202-1/+3
| | | | | | driver #507 [Demetrius] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@465 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fixed that find_all would produce invalid sql when called sequentialy #490 ↵David Heinemeier Hansson2005-01-202-1/+6
| | | | | | [Scott Baron] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@464 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Made ready for release of 0.9.4.1David Heinemeier Hansson2005-01-182-2/+2
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@458 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Cleanup the proxy rollback #492David Heinemeier Hansson2005-01-181-14/+6
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@457 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fixed that the belongs_to and has_one proxy would fail a test like 'if ↵David Heinemeier Hansson2005-01-187-32/+81
| | | | | | project.manager' -- this unfortunately also means that you can't call methods like project.manager.build unless there already is a manager on the project #492 [Tim Bates] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@456 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fixed that the Ruby/MySQL adapter wouldn't connect if the password was empty ↵David Heinemeier Hansson2005-01-182-1/+7
| | | | | | #503 [Pelle] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@454 5ecf4fe2-1ee6-0310-87b1-e25e094e27de