aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/CHANGELOG
Commit message (Collapse)AuthorAgeFilesLines
* Convert CHANGELOGs to Markdown format.Jon Leighton2011-11-041-6602/+0
| | | | | | | | | | | | | Reasons: * Markdown reads well as plain text, but can also be formatted. * It will make it easier for people to read on the web as Github formats the Markdown nicely. * It will encourage a level of consistency when people are writing CHANGELOG entries. The script used to perform the conversion is at https://gist.github.com/1339263
* Allow the :class_name option for associations to take a symbol.Jon Leighton2011-11-041-0/+8
| | | | | This is to avoid confusing newbies, and to be consistent with the fact that other options like :foreign_key already allow a symbol or a string.
* Fix #3271.Jon Leighton2011-11-031-0/+7
| | | | | | | | Building the conditions of a nested through association could potentially modify the conditions of the through and/or source association. This is a Bad Thing.
* Remove all revelant through records.Jon Leighton2011-11-031-0/+5
| | | | | | | | | If a record is removed from a has_many :through, all of the join records relating to that record should also be removed from the through association's target. (Previously the records were removed in the database, but only one was removed from the in-memory target array.)
* Fix adding multiple instances of the same record to a has_many :through.Jon Leighton2011-11-031-0/+4
| | | | Fixes #3425.
* Fix #3247.Jon Leighton2011-11-031-1/+7
| | | | | Fixes creating records in a through association with a polymorphic source type.
* registers PR #2419 in the CHANGELOGXavier Noria2011-10-241-0/+3
|
* Exclude _destroy parameter in :all_blank check (issue #2937)Aaron Christy2011-10-171-0/+5
|
* Added ActiveRecord::Base.store for declaring simple single-column key/value ↵David Heinemeier Hansson2011-10-131-0/+11
| | | | stores [DHH]
* Active Record changelog mistakesJosef Šimánek2011-10-101-7/+8
|
* Only use LOWER for mysql case insensitive uniqueness check when column has a ↵Joseph Palermo2011-10-091-1/+10
| | | | case sensitive collation.
* Transactional fixtures enlist all active database connections.Jeremy Kemper2011-10-051-0/+5
| | | | You can use multiple databases in your tests without disabling transactional fixtures.
* Add CHANGELOG entriesSantiago Pastorino2011-09-291-1/+25
|
* update 3.1 release date in changelogsVijay Dev2011-09-141-1/+1
|
* Rename first_or_new to first_or_initialize.Jon Leighton2011-09-131-3/+5
| | | | | For consistency with find_or_initialize_by. Also remove first_or_build alias.
* Merge pull request #2757 from andmej/first_or_create_pull_requestJon Leighton2011-09-081-0/+6
|\ | | | | Add first_or_create family of methods to Active Record
| * Adding first_or_create, first_or_create!, first_or_new and first_or_build to ↵Andrés Mejía2011-08-301-0/+6
| | | | | | | | | | | | | | | | | | | | Active Record. This let's you write things like: User.where(:first_name => "Scarlett").first_or_create!(:last_name => "Johansson", :hot => true) Related to #2420.
* | LRU cache in mysql and sqlite are now per-process caches.Aaron Patterson2011-09-071-1/+5
|/
* Move the bulk alter table code into the abstract mysql adapter, hence it is ↵Jon Leighton2011-08-291-0/+2
| | | | supported for mysql2 as well now.
* Add a proxy_association method to association proxies, which can be called ↵Jon Leighton2011-07-271-0/+6
| | | | by association extensions to access information about the association. This replaces proxy_owner etc with proxy_association.owner.
* registers the recent change to date multiparameter handling in the CHANGELOGXavier Noria2011-07-231-0/+5
|
* adding changelog entry for connection urlsAaron Patterson2011-07-211-0/+5
|
* Raise an ArgumentError if user passing less number of argument in the ↵Prem Sichanugrist2011-07-171-0/+14
| | | | | | | | | | | | | dynamic finder The previous behavior was unintentional, and some people was relying on it. Now the dynamic finder will always expecting the number of arguments to be equal or greater (so you can still pass the options to it.) So if you were doing this and expecting the second argument to be nil: User.find_by_username_and_group("sikachu") You'll now get `ArgumentError: wrong number of arguments (1 for 2).` You'll then have to do this: User.find_by_username_and_group("sikachu", nil)
* Assign the association attributes to the associated record before the ↵Jon Leighton2011-06-301-0/+12
| | | | before_initialize callback of the record runs. Fixes #1842.
* Revert "updated Changelog "Xavier Noria2011-06-061-1/+6
| | | | | | | | | | This reverts commit 79990505e5080804b53d81fec059136afa2237d7. Conflicts: activerecord/CHANGELOG Reason: Sorry, CHANGELOGs can't be edited via docrails.
* Revise documentation indentation from [79990505e5080804b53d81fec059136afa2237d7]Prem Sichanugrist2011-06-031-6/+6
|
* updated Changelog ganesh2011-06-041-12/+6
|
* Adding pluralize_table_names change to CHANGELOGGuillermo Iguaran2011-05-211-0/+8
|
* Add block setting of attributes to singular associationsAndrew White2011-05-171-0/+10
|
* Add ActiveRecord::attribute_names to retrieve a list of attribute names. ↵Prem Sichanugrist2011-05-151-0/+2
| | | | This method will also return an empty array on an abstract class or a model that the table doesn't exists.
* updated AR#create! to accept an options hash so the mass-assignment security ↵Josh Kalderimis2011-05-121-13/+15
| | | | role can be passed in, also updated the Changelog to mention the change to some of the AR method signatures.
* deprecating CSV fixture supportAaron Patterson2011-05-101-0/+2
|
* Merging 3.0.x CHANGELOGsGuillermo Iguaran2011-05-101-0/+80
|
* Update CHANGELOGs.José Valim2011-05-061-19/+16
|
* Bring back support for passing a callable object to the default_scope macro. ↵Jon Leighton2011-04-181-0/+11
| | | | You can also just use a block.
* Un-deprecate using 'default_scope' as a macro, but if you are calling the ↵Jon Leighton2011-04-181-9/+18
| | | | macro multiple times that will give deprecation warnings, and in 3.2 we will simply overwrite the default scope when you call the macro multiple times.
* Revert "Deprecate defining scopes with a callable (lambda, proc, etc) via ↵Jon Leighton2011-04-171-18/+0
| | | | | | | | | | the scope class method. Just define a class method yourself instead." This reverts commit f0e198bfa1e3f9689e0cde1d194a44027fc90b3c. Conflicts: activerecord/test/models/post.rb
* Deprecate defining scopes with a callable (lambda, proc, etc) via the scope ↵Jon Leighton2011-04-121-0/+18
| | | | class method. Just define a class method yourself instead.
* Evaluate default scopes at the last possible moment in order to avoid ↵Jon Leighton2011-04-121-0/+11
| | | | problems with default scopes getting included into other scopes and then being unable to remove the default part via unscoped.
* Deprecated support for passing hashes and relations to default_scope, in ↵Jon Leighton2011-04-121-0/+21
| | | | favour of defining a 'default_scope' class method in the model. See the CHANGELOG for more details.
* adding pg support notes to the changelogAaron Patterson2011-04-101-0/+2
|
* proxy body responses so we close database connections after body is flushedAaron Patterson2011-03-291-0/+3
|
* Added new #update_column method.Sebastian Martinez2011-03-271-0/+9
| | | | Signed-off-by: Santiago Pastorino <santiago@wyeworks.com>
* Merge branch 'master' into nested_has_many_throughJon Leighton2011-03-051-0/+3
|\ | | | | | | | | Conflicts: activerecord/CHANGELOG
| * implements ActiveRecord::Base.connection_config to be able to check the ↵Xavier Noria2011-03-051-0/+3
| | | | | | | | configuration of the current connection at runtime
* | Merge branch 'master' into nested_has_many_throughJon Leighton2011-03-041-4/+0
|\|
* | Merge branch 'master' into nested_has_many_throughJon Leighton2011-03-041-3/+175
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: activerecord/CHANGELOG activerecord/lib/active_record/association_preload.rb activerecord/lib/active_record/associations.rb activerecord/lib/active_record/associations/class_methods/join_dependency.rb activerecord/lib/active_record/associations/class_methods/join_dependency/join_association.rb activerecord/lib/active_record/associations/has_many_association.rb activerecord/lib/active_record/associations/has_many_through_association.rb activerecord/lib/active_record/associations/has_one_association.rb activerecord/lib/active_record/associations/has_one_through_association.rb activerecord/lib/active_record/associations/through_association_scope.rb activerecord/lib/active_record/reflection.rb activerecord/test/cases/associations/has_many_through_associations_test.rb activerecord/test/cases/associations/has_one_through_associations_test.rb activerecord/test/cases/reflection_test.rb activerecord/test/cases/relations_test.rb activerecord/test/fixtures/memberships.yml activerecord/test/models/categorization.rb activerecord/test/models/category.rb activerecord/test/models/member.rb activerecord/test/models/reference.rb activerecord/test/models/tagging.rb
| * removing limits and offsets from COUNT queries unless both are specified. ↵Aaron Patterson2011-02-251-0/+9
| | | | | | | | [#6268 state:resolved]
| * Split AssociationProxy into an Association class (and subclasses) which ↵Jon Leighton2011-02-181-0/+12
| | | | | | | | manages the association, and a CollectionProxy class which is *only* a proxy. Singular associations no longer have a proxy. See CHANGELOG for more.
| * Allow building and then later saving has_many :through records, such that ↵Jon Leighton2011-02-181-0/+24
| | | | | | | | the join record is automatically saved too. This requires the :inverse_of option to be set on the source association in the join model. See the CHANGELOG for details. [#4329 state:resolved]