aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/CHANGELOG.md
Commit message (Collapse)AuthorAgeFilesLines
* 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
|/
* connections must be checked in at the end of a threadAaron Patterson2011-12-301-0/+3
|
* Add some doc for ActiveRecord::ModelJon Leighton2011-12-241-3/+31
|
* can create hstore records via AR APIAaron Patterson2011-12-201-0/+2
|
* PostgreSQL hstore types are automatically deserialized from the database.Aaron Patterson2011-12-201-0/+4
|
* NullStore cache belongs in Active SupportVijay Dev2011-12-201-4/+0
|
* Add ActiveSupport::Cache::NullStore to expose caching interface without ↵Brian Durand2011-12-121-0/+4
| | | | actually caching for development and test environments.
* Allow to run migrations with given scope, with SCOPE=<scope>Piotr Sarnacki2011-12-091-0/+12
| | | | | | | | | | | Scope in migrations can be defined by adding suffix in filename, like: 01_a_migration.blog.rb. Such migration have blog scope. Scope is automatically added while copying migrations from engine, so if you want to revert all of the migrations from given engine, you can just run db:migrate with SCOPE, like: rake db:migrate SCOPE=blog
* removes the convenience instance version of AR::Base.silence_auto_explainXavier Noria2011-12-031-2/+2
| | | | | | | Rationale: As discussed with José and Jon, this convenience shortcut is not clearly justified and it could let the user thing the disabled EXPLAINs are related to the model instance rather than being globally disabled.
* implements AR::Base(.|#)silence_auto_explainXavier Noria2011-12-021-0/+3
|
* implements automatic EXPLAIN logging for slow queriesXavier Noria2011-12-021-0/+11
|
* Revert "Added ActiveRecord::Base#last_modified to work with the new ↵David Heinemeier Hansson2011-12-011-1/+0
| | | | | | | | fresh_when/stale? conditional get methods from Action Pack" Needless indirection with no added value. This reverts commit 535853e83b9092078035a5abb2aa242fba815c05.
* Added ActiveRecord::Base#last_modified to work with the new ↵David Heinemeier Hansson2011-12-011-0/+1
| | | | fresh_when/stale? conditional get methods from Action Pack
* ActiveRecord::Relation#pluck methodBogdan Gusiev2011-11-301-0/+9
|
* Automatic closure of connections in threads is deprecated. For exampleAaron Patterson2011-11-291-0/+16
| | | | | | | | | | | | | | | | | the following code is deprecated: Thread.new { Post.find(1) }.join It should be changed to close the database connection at the end of the thread: Thread.new { Post.find(1) Post.connection.close }.join Only people who spawn threads in their application code need to worry about this change.
* Deprecate set_locking_column in favour of self.locking_column=Jon Leighton2011-11-291-0/+1
|
* Deprecate set_primary_key in favour of self.primary_key=Jon Leighton2011-11-291-0/+1
|
* Deprecate set_sequence_name in favour of self.sequence_name=Jon Leighton2011-11-291-0/+1
|
* Deprecate set_inheritance_column in favour of self.inheritance_column=Jon Leighton2011-11-291-2/+8
|
* Deprecate set_table_name in favour of self.table_name= or defining your own ↵Jon Leighton2011-11-291-0/+16
| | | | method.
* Merge pull request #3636 from joshsusser/masterJon Leighton2011-11-291-0/+6
|\ | | | | association methods are now generated in modules