aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord
Commit message (Collapse)AuthorAgeFilesLines
* 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
* Added new Base.find API and deprecated find_all, find_first. Added ↵David Heinemeier Hansson2005-04-0316-227/+243
| | | | | | preliminary support for eager loading of associations git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1077 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fixed that benchmarking times for rendering included db runtimes #987 ↵David Heinemeier Hansson2005-04-021-0/+2
| | | | | | [skaes@web.de] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1070 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Removed broken attempt to DRY module ClassMethod #970David Heinemeier Hansson2005-04-025-0/+25
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1069 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Automatically extend the class which gets a module included with the ↵David Heinemeier Hansson2005-04-025-25/+0
| | | | | | ClassMethods module if it exists #970 [Lucas Carlson] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1068 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fixed boolean queries for t/f fields in PostgreSQL #995 [dave@cherryville.org]David Heinemeier Hansson2005-04-022-1/+3
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1066 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Added that model.items.delete(child) will delete the child, not just set the ↵David Heinemeier Hansson2005-04-024-10/+31
| | | | | | foreign key to nil, if the child is dependent on the model #978 [bitsweat] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1064 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fixed auto-stamping of dates (created_on/updated_on) for PostgreSQL #985 ↵David Heinemeier Hansson2005-04-022-6/+8
| | | | | | [dave@cherryville.org] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1063 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* decrease reliance on instantiated fixtures #980 [Jeremy Kemper]David Heinemeier Hansson2005-04-021-21/+15
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1062 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fixed Base.silence/benchmark to only log if a logger has been configured ↵David Heinemeier Hansson2005-04-022-3/+5
| | | | | | #986 [skaes@web.de] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1059 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Added a join parameter as the third argument to Base.find_first and as the ↵David Heinemeier Hansson2005-04-022-3/+5
| | | | | | second to Base.count #426, #988 [skaes@web.de] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1058 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Made sure all MySQL tables are created as InnoDBDavid Heinemeier Hansson2005-04-022-14/+14
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1054 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Added install.rbs for all frameworks and made all of them generic enough not ↵David Heinemeier Hansson2005-04-021-42/+7
| | | | | | to require maintenance #1013, #1012 git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1053 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Added a join parameter as the third argument to Base.find_first #426 ↵David Heinemeier Hansson2005-03-312-2/+4
| | | | | | [skaes@web.de] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1047 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fixed bug in Base#hash method that would treat records with the same ↵David Heinemeier Hansson2005-03-302-1/+3
| | | | | | string-based id as different [Dave Thomas] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1039 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Renamed DateHelper#distance_of_time_in_words_to_now to ↵David Heinemeier Hansson2005-03-301-0/+5
| | | | | | DateHelper#time_ago_in_words (old method name is still available as a deprecated alias) git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1038 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Dont load the target before the proxy has had a chance to answer the ↵David Heinemeier Hansson2005-03-291-2/+1
| | | | | | respond_to? -- this would cause an .empty? query to trigger loading the entire collection if the proxy had already been initialized git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1036 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fixed the Rakefile #959David Heinemeier Hansson2005-03-271-1/+1
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1028 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Made ready for the release of 0.11.1David Heinemeier Hansson2005-03-272-43/+13
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1023 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fixed that Active Record objects with float attribute could not be cloned #808David Heinemeier Hansson2005-03-271-1/+1
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1022 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Made ready for better release automationDavid Heinemeier Hansson2005-03-271-29/+130
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1021 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Added documentation about named bind variablesDavid Heinemeier Hansson2005-03-271-0/+10
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1020 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fixed that MissingSourceFile's wasn't properly detected in production mode ↵David Heinemeier Hansson2005-03-251-0/+2
| | | | | | #925 [Nicholas Seckar] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@990 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fixed that :counter_cache option would look for a line_items_count column ↵David Heinemeier Hansson2005-03-232-2/+4
| | | | | | for a LineItem object instead of lineitems_count git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@989 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fixed that AR exists?() would explode on postgresql if the passed id did not ↵David Heinemeier Hansson2005-03-232-1/+3
| | | | | | match the PK type #900 [Scott Barron] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@983 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fixed the MS SQL adapter to work with the new limit/offset approach and with ↵David Heinemeier Hansson2005-03-237-183/+184
| | | | | | binary data (still suffering from 7KB limit, though) #901 [delynnb] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@982 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fixed documentation and prepared for 0.11.0 releaseDavid Heinemeier Hansson2005-03-222-5/+5
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@976 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Updated more documentationDavid Heinemeier Hansson2005-03-221-1/+1
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@975 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Added adapter independent limit clause as a two-element array with the first ↵David Heinemeier Hansson2005-03-208-24/+69
| | | | | | being the limit, the second being the offset #795 [Sam Stephenson] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@944 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Added alias_method :to_param, :id to Base, such that Active Record objects ↵David Heinemeier Hansson2005-03-202-0/+5
| | | | | | to be used as URL parameters in Action Pack automatically #812 [Nicholas Seckar/Sam Stephenson] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@936 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Improved the performance of the OCI8 adapter for Oracle #723 [pilx/gjenkins]David Heinemeier Hansson2005-03-202-11/+16
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@930 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Added type conversion before saving a record, so string-based values like ↵David Heinemeier Hansson2005-03-203-2/+4
| | | | | | "10.0" arent left for the database to convert #820 [dave@cherryville.org] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@928 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* changes the CREATE TABLE script for the "binaries" table to use the "image" ↵David Heinemeier Hansson2005-03-201-1/+1
| | | | | | datatype. The script was previously failing to create a table (on SQL Server 2000). #834 [adelle] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@926 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Added with additional settings for working with transactional fixtures and ↵David Heinemeier Hansson2005-03-203-16/+79
| | | | | | pre-loaded test databases #865 [mindel] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@924 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fixed acts_as_list to trigger remove_from_list on destroy after the fact, ↵David Heinemeier Hansson2005-03-202-1/+3
| | | | | | not before, so a unique position can be maintained #871 [Alisdair McDiarmid] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@923 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Added warning about specifying callbacks before associations to trigger ↵David Heinemeier Hansson2005-03-191-0/+4
| | | | | | inheritance git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@917 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Added the possibility of specifying fixtures in multiple calls #816 ↵David Heinemeier Hansson2005-03-173-1/+23
| | | | | | [kim@tinker.com] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@915 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Added Base.exists?(id) that'll return true if an object of the class with ↵David Heinemeier Hansson2005-03-173-0/+16
| | | | | | the given id exists #854 [stian@grytoyr.net] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@913 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Added optionally allow for nil or empty strings with ↵David Heinemeier Hansson2005-03-143-72/+66
| | | | | | validates_numericality_of #801 [Sebastian Kanthak] Fixed problem with using slashes in validates_format_of regular expressions #801 [Sebastian Kanthak] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@910 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fixed that SQLite3 exceptions are caught and reported properly #823 [yerejm]David Heinemeier Hansson2005-03-145-4/+10
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@909 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Doc fix #805David Heinemeier Hansson2005-03-141-1/+1
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@900 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Added that all types of after_find/after_initialized callbacks are triggered ↵David Heinemeier Hansson2005-03-143-24/+79
| | | | | | if the explicit implementation is present, not only the explicit implementation itself git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@898 5ecf4fe2-1ee6-0310-87b1-e25e094e27de