aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/CHANGELOG
Commit message (Collapse)AuthorAgeFilesLines
* Added Base.validates_inclusion_of that validates whether the value of the ↵David Heinemeier Hansson2004-12-161-0/+8
| | | | | | specified attribute is available in a particular enumerable object. [what-a-day] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@179 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@177 ↵David Heinemeier Hansson2004-12-161-2/+2
| | | | 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Added that Active Records will automatically record creation and/or update ↵David Heinemeier Hansson2004-12-161-26/+14
| | | | | | timestamps of database objects if fields of the names created_at/created_on or updated_at/updated_on are present. [Tobias Luetke] Added acts_as_tree that can decorates an existing class with a many to many relationship with itself. Added acts_as_list that can decorates an existing class with methods like move_higher/lower, move_to_top/bottom. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@176 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Added Base.validates_format_of that Validates whether the value of the ↵David Heinemeier Hansson2004-12-161-1/+8
| | | | | | specified attribute is of the correct form by matching it against the regular expression provided. [Marcel] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@174 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Added Base.default_error_messages as a hash of all the error messages used ↵David Heinemeier Hansson2004-12-151-0/+2
| | | | | | in the validates_*_of so they can be changed in one place [Tobias Luetke] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@173 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Added automatic transaction block around AssociationCollection.<<, ↵David Heinemeier Hansson2004-12-151-0/+2
| | | | | | AssociationCollection.delete, and AssociationCollection.destroy_all git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@171 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Added Base.validates_boundries_of that delegates to add_on_boundary_breaking ↵David Heinemeier Hansson2004-12-151-14/+13
| | | | | | #312 [Tobias Luetke] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@166 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fixed that Base#find will return an array if given an array -- regardless of ↵David Heinemeier Hansson2004-12-151-0/+2
| | | | | | the number of elements #270 [Marten] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@164 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Changed validate_* to validates_*_of, so validate_acceptance becomes ↵David Heinemeier Hansson2004-12-151-10/+6
| | | | | | validates_acceptance_of, and added :on as a configuration option instead of using _on_create/update git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@157 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fixed that has_and_belongs_to_many would generate bad sql when naming ↵David Heinemeier Hansson2004-12-141-0/+2
| | | | | | conventions differed from using vanilla "id" everywhere [RedTerror] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@152 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Added a better exception for when a type column is used in a table without ↵David Heinemeier Hansson2004-12-141-0/+10
| | | | | | the intention of triggering single-table inheritance. Added that single-table inheritance will only kick in if the inheritance_column (by default "type") is present. Otherwise, inheritance wont have any magic side effects git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@149 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fixed a pattern for module loadingDavid Heinemeier Hansson2004-12-121-0/+2
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@137 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Added Base.validate_uniqueness thatv alidates whether the value of the ↵David Heinemeier Hansson2004-12-101-0/+15
| | | | | | specified attributes are unique across the system. Useful for making sure that only one user can be named "davidhh". git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@108 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Added Base.validate_presence as an alternative to implementing validate and ↵David Heinemeier Hansson2004-12-101-5/+8
| | | | | | doing errors.add_on_empty yourself. Added _on_create and _on_update versions for all the new validations git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@107 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fixed Base.errors to be indifferent as to whether strings or symbols are used.David Heinemeier Hansson2004-12-091-0/+12
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@98 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Added Base.validate_confirmation that encapsulates the pattern of wanting to ↵David Heinemeier Hansson2004-12-091-0/+16
| | | | | | validate the acceptance of a terms of service check box (or similar agreement) git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@97 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Added Base.validate_confirmation that encapsulates the pattern of wanting to ↵David Heinemeier Hansson2004-12-091-0/+17
| | | | | | validate a password or email address field with a confirmation. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@95 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Added validation macros to make the stackable just like the lifecycle callbacksDavid Heinemeier Hansson2004-12-091-0/+13
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@94 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Added ActiveRecord::Mixins::Touch that will record creation and update times ↵David Heinemeier Hansson2004-12-081-1/+15
| | | | | | of objects [xal] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@85 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Added ActiveRecord::Mixins::List that can decorates an existing class with ↵David Heinemeier Hansson2004-12-081-0/+12
| | | | | | methods like move_higher/lower, move_to_top/bottom git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@84 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Added named bind-style variable interpolation #281 [Michael Koziarski]David Heinemeier Hansson2004-12-081-0/+4
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@78 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Added the option for sanitizing find_by_sql and the offset parts in regular ↵David Heinemeier Hansson2004-12-071-0/+5
| | | | | | finds [Sam Stephenson] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@75 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fixed value quoting in all generated SQL statements, so that integers are ↵David Heinemeier Hansson2004-12-071-0/+4
| | | | | | not surrounded in quotes and that all sanitation are happening through the database's own quoting routine. This should hopefully make it lots easier for new adapters that doesn't accept '1' for integer columns. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@70 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fixed has_and_belongs_to_many guessing of foreign key so that keys are ↵David Heinemeier Hansson2004-12-071-0/+3
| | | | | | generated correctly for models like SomeVerySpecialClient [Florian Weber] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@69 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Added counter_sql option for has_many associations [bitsweat]David Heinemeier Hansson2004-12-071-0/+5
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@68 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fixed that methods wrapped in callbacks still return their original result ↵David Heinemeier Hansson2004-12-071-0/+2
| | | | | | #260 [bitsweat] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@65 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fixed the Inflector to handle the movie/movies pair correctly #261 [Scott Baron]David Heinemeier Hansson2004-12-071-0/+2
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@60 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Added bind-style variable interpolation for the condition arrays that uses ↵David Heinemeier Hansson2004-12-071-0/+10
| | | | | | the adapter's quote method [Michael Koziarski] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@56 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Added CSV format for fixtures #272 [what-a-day]David Heinemeier Hansson2004-12-071-0/+2
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@55 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fixed fixtures using primary key fields called something else than "id" #270 ↵David Heinemeier Hansson2004-12-061-0/+2
| | | | | | [dave] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@53 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Added proper handling of time fields that are turned into Time objects with ↵David Heinemeier Hansson2004-12-011-0/+2
| | | | | | the dummy date of 2000/1/1 [HariSeldon] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@40 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Added reverse order of deleting fixtures, so referential keys can be ↵David Heinemeier Hansson2004-12-011-0/+2
| | | | | | maintained #247 [Tim Bates] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@38 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Added relative path search for sqlite dbfiles in database.yml (if RAILS_ROOT ↵David Heinemeier Hansson2004-12-011-0/+2
| | | | | | is defined) #233 [bitsweat] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@34 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Added option to establish_connection where you'll be able to leave out the ↵David Heinemeier Hansson2004-11-251-0/+2
| | | | | | parameter to have it use the RAILS_ENV environment variable git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* InitialDavid Heinemeier Hansson2004-11-241-0/+757
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4 5ecf4fe2-1ee6-0310-87b1-e25e094e27de