aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/CHANGELOG.md
Commit message (Collapse)AuthorAgeFilesLines
* Use . instead of :: for class methods, add CHANGELOG entriesJosé Valim2012-06-101-0/+3
|
* + ActiveRecord::Base#destroy!Marc-Andre Lafortune2012-06-061-0/+5
|
* Sync CHANGLOG with the 3-2-stable branchRafael Mendonça França2012-06-011-0/+27
|
* Fix changelog example for count method with block [ci skip]Carlos Antonio da Silva2012-05-311-1/+1
| | | | Missed that too, thanks again @splattael.
* Yield only one argument instead of splatting.Carlos Antonio da Silva2012-05-281-0/+7
| | | | Add Changelog entry. Closes #4003
* Add support for CollectionAssociation#delete by Fixnum or StringFrancesco Rodriguez2012-05-281-0/+13
| | | | | | | | | | | | | | | | | | | | | | | | I found the next issue between CollectionAssociation `delete` and `destroy`. class Person < ActiveRecord::Base has_many :pets end person.pets.destroy(1) # => OK, returns the destroyed object person.pets.destroy("2") # => OK, returns the destroyed object person.pets.delete(1) # => ActiveRecord::AssociationTypeMismatch person.pets.delete("2") # => ActiveRecord::AssociationTypeMismatch Adding support for deleting with a fixnum or string like `destroy` method.
* fix typo [ci skip]Jon Leighton2012-05-181-1/+1
|
* add changelogs about deprecated stuff [ci skip]Jon Leighton2012-05-181-1/+55
|
* Don't destroy readonly modelsJohannes Barre2012-05-171-0/+5
|
* Relation#from to accept other Relation objectsRadoslav Stankov2012-05-171-0/+7
| | | | Record.from("(#{sub_query.to_sql})") -> Record.from(sub_query) Record.from("(#{sub_query.to_sql}) a") -> Record.from(sub_query, :a)
* Fix misprint in AR changelogAlexey Vakhov2012-05-161-1/+1
|
* corrected some misspellingAngelo capilleri2012-05-151-3/+3
|
* Copy edit [ci skip]Rafael Mendonça França2012-05-131-0/+1
|
* Custom coders support for ActiveRecord::Store. JSON, YAML, Marshal can be ↵Andrey Voronkov2012-05-091-0/+6
| | | | used out of the box.
* Changelog entry regarding mysql(2) STRICT_ALL_TABLESMichael Pearson2012-05-051-0/+6
|
* Adding note about `first` and `take` to the changelogMarcelo Silveira2012-05-021-0/+6
|
* changelog fixes. Closes #3911Vijay Dev2012-05-011-13/+0
|
* Update Rails 3.2.3 release date in changelogs as March 30, 2012Michael de Silva2012-04-161-1/+1
| | | | | The release date details have been taken from http://weblog.rubyonrails.org/2012/3/30/ann-rails-3-2-3-has-been-released/
* Automatically create indexes for references/belongs_to statements in migrations.Joshua Wood2012-04-141-0/+22
|
* Add bang versions of relation query methods.Jon Leighton2012-04-121-0/+7
| | | | | The main reason for this is that I want to separate the code that does the mutating from the code that does the cloning.
* Add Relation#find_by and Relation#find_by!Jon Leighton2012-03-301-0/+10
|
* CHANGELOG entry for AR#sliceGuillermo Iguaran2012-03-291-0/+5
|
* Deprecate eager-evaluated scopes.Jon Leighton2012-03-211-0/+31
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | Don't use this: scope :red, where(color: 'red') default_scope where(color: 'red') Use this: scope :red, -> { where(color: 'red') } default_scope { where(color: 'red') } The former has numerous issues. It is a common newbie gotcha to do the following: scope :recent, where(published_at: Time.now - 2.weeks) Or a more subtle variant: scope :recent, -> { where(published_at: Time.now - 2.weeks) } scope :recent_red, recent.where(color: 'red') Eager scopes are also very complex to implement within Active Record, and there are still bugs. For example, the following does not do what you expect: scope :remove_conditions, except(:where) where(...).remove_conditions # => still has conditions
* Expand changelog and upgrading rails guide with IdentityMap infoCarlos Antonio da Silva2012-03-131-1/+10
|
* Remove IdentityMapCarlos Antonio da Silva2012-03-131-0/+2
|
* Add dynamic find_or_create_by_{attribute}! method.Andrew White2012-03-121-0/+2
|
* Fix my name in the CHANGELOG to follow the conventionRafael Mendonça França2012-03-091-0/+11
| | | | Also add missing entries and use the formating convention
* fix incorrect changelog headings [ci skip].Vijay Dev2012-03-091-12/+13
| | | | Last commit message should not have said 'Rails 4' either
* changelog updates for Rails 4 [ci skip]Vijay Dev2012-03-091-0/+12
|
* Update CHANGELOG to fix wrong extension.kennyj2012-03-081-1/+1
|
* Merge pull request #5162 from kennyj/schema_cache_dumpAaron Patterson2012-03-071-0/+23
|\ | | | | [Proposal] Schema cache dump
| * Add entry for schema cache dump to CHANGELOG.md.kennyj2012-03-011-0/+23
| |
* | Add release dates to documentationclaudiob2012-03-011-2/+2
|/ | | | Set "March 1, 2012" as the release date for 3.2.2, 3.1.4, 3.0.12
* Update changelogs with rails 3.0-stable branch infoPaco Guzman2012-02-251-3/+85
|
* Update activerecord/CHANGELOG.mdJosef Šimánek2012-02-181-1/+1
|
* Added where option to add_index to support postgresql partial indicesMarcelo Silveira2012-02-091-0/+13
| | | | | | | | | | | The `add_index` method now supports a `where` option that receives a string with the partial index criteria. add_index(:accounts, :code, :where => "active") Generates CREATE INDEX index_accounts_on_code ON accounts(code) WHERE active
* Added `none` query method to return zero records.Juanjo Bazán2012-01-311-0/+13
| | | And added NullRelation class implementing the null object pattern for the `Relation` class.
* has_many/has_one, :dependent => :restrict, deprecation added.Manoj2012-01-291-0/+19
|
* Add `create_join_table` migration helper to create HABTM join tablesRafael Mendonça França2012-01-271-2/+13
|
* Fixed small typo in ActveRecord/CHANGELOG.mdMatt Bridges2012-01-261-1/+1
|
* syncs 3-2-stable CHANGELOGs in masterXavier Noria2012-01-261-0/+9
|
* Add release date of Rails 3.2.0 to documentationclaudiob2012-01-261-1/+1
|
* The primary key is always initialized in the @attributes hash to nil (unlessAaron Patterson2012-01-251-0/+3
| | | | another value has been specified).
* Add ActiveRecord::Base#with_lockOlek Janiszewski2012-01-181-1/+28
| | | | | | | | | | | | | | | | | | | | | | | | | | | Add a `with_lock` method to ActiveRecord objects, which starts a transaction, locks the object (pessimistically) and yields to the block. The method takes one (optional) parameter and passes it to `lock!`. Before: class Order < ActiveRecord::Base def cancel! transaction do lock! # ... cancelling logic end end end After: class Order < ActiveRecord::Base def cancel! with_lock do # ... cancelling logic end end end
* Make it more explicit that the feature is deprecated, not removed.Jon Leighton2012-01-161-2/+4
|
* Deprecate inferred JOINs with includes + SQL snippets.Jon Leighton2012-01-161-0/+30
| | | | | | See the CHANGELOG for details. Fixes #950.
* Merge pull request #4387 from Karunakar/releasenotesVijay Dev2012-01-121-2/+2
|\ | | | | Added the release dates for rails 3.1.1, rails 3.1.2, rails 3.1.3
| * Added the release dates for rails 3.1.1, rails 3.1.2, rails 3.1.3Karunakar (Ruby)2012-01-081-2/+2
| |
* | Add CHANGELOG entrySantiago Pastorino2012-01-111-0/+3
| |
* | dropping support for `schema_info`.Aaron Patterson2012-01-101-0/+3
|/