Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
* | Yield only one argument instead of splatting. | Carlos Antonio da Silva | 2012-05-28 | 1 | -0/+7 | |
| | | | | Add Changelog entry. Closes #4003 | |||||
* | Add support for CollectionAssociation#delete by Fixnum or String | Francesco Rodriguez | 2012-05-28 | 1 | -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 Leighton | 2012-05-18 | 1 | -1/+1 | |
| | ||||||
* | add changelogs about deprecated stuff [ci skip] | Jon Leighton | 2012-05-18 | 1 | -1/+55 | |
| | ||||||
* | Don't destroy readonly models | Johannes Barre | 2012-05-17 | 1 | -0/+5 | |
| | ||||||
* | Relation#from to accept other Relation objects | Radoslav Stankov | 2012-05-17 | 1 | -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 changelog | Alexey Vakhov | 2012-05-16 | 1 | -1/+1 | |
| | ||||||
* | corrected some misspelling | Angelo capilleri | 2012-05-15 | 1 | -3/+3 | |
| | ||||||
* | Copy edit [ci skip] | Rafael Mendonça França | 2012-05-13 | 1 | -0/+1 | |
| | ||||||
* | Custom coders support for ActiveRecord::Store. JSON, YAML, Marshal can be ↵ | Andrey Voronkov | 2012-05-09 | 1 | -0/+6 | |
| | | | | used out of the box. | |||||
* | Changelog entry regarding mysql(2) STRICT_ALL_TABLES | Michael Pearson | 2012-05-05 | 1 | -0/+6 | |
| | ||||||
* | Adding note about `first` and `take` to the changelog | Marcelo Silveira | 2012-05-02 | 1 | -0/+6 | |
| | ||||||
* | changelog fixes. Closes #3911 | Vijay Dev | 2012-05-01 | 1 | -13/+0 | |
| | ||||||
* | Update Rails 3.2.3 release date in changelogs as March 30, 2012 | Michael de Silva | 2012-04-16 | 1 | -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 Wood | 2012-04-14 | 1 | -0/+22 | |
| | ||||||
* | Add bang versions of relation query methods. | Jon Leighton | 2012-04-12 | 1 | -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 Leighton | 2012-03-30 | 1 | -0/+10 | |
| | ||||||
* | CHANGELOG entry for AR#slice | Guillermo Iguaran | 2012-03-29 | 1 | -0/+5 | |
| | ||||||
* | Deprecate eager-evaluated scopes. | Jon Leighton | 2012-03-21 | 1 | -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 info | Carlos Antonio da Silva | 2012-03-13 | 1 | -1/+10 | |
| | ||||||
* | Remove IdentityMap | Carlos Antonio da Silva | 2012-03-13 | 1 | -0/+2 | |
| | ||||||
* | Add dynamic find_or_create_by_{attribute}! method. | Andrew White | 2012-03-12 | 1 | -0/+2 | |
| | ||||||
* | Fix my name in the CHANGELOG to follow the convention | Rafael Mendonça França | 2012-03-09 | 1 | -0/+11 | |
| | | | | Also add missing entries and use the formating convention | |||||
* | fix incorrect changelog headings [ci skip]. | Vijay Dev | 2012-03-09 | 1 | -12/+13 | |
| | | | | Last commit message should not have said 'Rails 4' either | |||||
* | changelog updates for Rails 4 [ci skip] | Vijay Dev | 2012-03-09 | 1 | -0/+12 | |
| | ||||||
* | Update CHANGELOG to fix wrong extension. | kennyj | 2012-03-08 | 1 | -1/+1 | |
| | ||||||
* | Merge pull request #5162 from kennyj/schema_cache_dump | Aaron Patterson | 2012-03-07 | 1 | -0/+23 | |
|\ | | | | | [Proposal] Schema cache dump | |||||
| * | Add entry for schema cache dump to CHANGELOG.md. | kennyj | 2012-03-01 | 1 | -0/+23 | |
| | | ||||||
* | | Add release dates to documentation | claudiob | 2012-03-01 | 1 | -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 info | Paco Guzman | 2012-02-25 | 1 | -3/+85 | |
| | ||||||
* | Update activerecord/CHANGELOG.md | Josef Šimánek | 2012-02-18 | 1 | -1/+1 | |
| | ||||||
* | Added where option to add_index to support postgresql partial indices | Marcelo Silveira | 2012-02-09 | 1 | -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án | 2012-01-31 | 1 | -0/+13 | |
| | | | And added NullRelation class implementing the null object pattern for the `Relation` class. | |||||
* | has_many/has_one, :dependent => :restrict, deprecation added. | Manoj | 2012-01-29 | 1 | -0/+19 | |
| | ||||||
* | Add `create_join_table` migration helper to create HABTM join tables | Rafael Mendonça França | 2012-01-27 | 1 | -2/+13 | |
| | ||||||
* | Fixed small typo in ActveRecord/CHANGELOG.md | Matt Bridges | 2012-01-26 | 1 | -1/+1 | |
| | ||||||
* | syncs 3-2-stable CHANGELOGs in master | Xavier Noria | 2012-01-26 | 1 | -0/+9 | |
| | ||||||
* | Add release date of Rails 3.2.0 to documentation | claudiob | 2012-01-26 | 1 | -1/+1 | |
| | ||||||
* | The primary key is always initialized in the @attributes hash to nil (unless | Aaron Patterson | 2012-01-25 | 1 | -0/+3 | |
| | | | | another value has been specified). | |||||
* | Add ActiveRecord::Base#with_lock | Olek Janiszewski | 2012-01-18 | 1 | -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 Leighton | 2012-01-16 | 1 | -2/+4 | |
| | ||||||
* | Deprecate inferred JOINs with includes + SQL snippets. | Jon Leighton | 2012-01-16 | 1 | -0/+30 | |
| | | | | | | See the CHANGELOG for details. Fixes #950. | |||||
* | Merge pull request #4387 from Karunakar/releasenotes | Vijay Dev | 2012-01-12 | 1 | -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.3 | Karunakar (Ruby) | 2012-01-08 | 1 | -2/+2 | |
| | | ||||||
* | | Add CHANGELOG entry | Santiago Pastorino | 2012-01-11 | 1 | -0/+3 | |
| | | ||||||
* | | dropping support for `schema_info`. | Aaron Patterson | 2012-01-10 | 1 | -0/+3 | |
|/ | ||||||
* | connections must be checked in at the end of a thread | Aaron Patterson | 2011-12-30 | 1 | -0/+3 | |
| | ||||||
* | Add some doc for ActiveRecord::Model | Jon Leighton | 2011-12-24 | 1 | -3/+31 | |
| | ||||||
* | can create hstore records via AR API | Aaron Patterson | 2011-12-20 | 1 | -0/+2 | |
| | ||||||
* | PostgreSQL hstore types are automatically deserialized from the database. | Aaron Patterson | 2011-12-20 | 1 | -0/+4 | |
| |