aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/CHANGELOG.md
Commit message (Collapse)AuthorAgeFilesLines
* Removed support for deprecated `insert_sql` in associations.Neeraj Singh2013-07-021-0/+4
|
* Removed support for deprecated `finder_sql` in associations.Neeraj Singh2013-07-021-0/+4
|
* Add CHANGELOG enty for #11235Rafael Mendonça França2013-07-021-0/+4
|
* Removed support for deprecated `counter_sql`Neeraj Singh2013-07-021-0/+4
|
* Merge pull request #10604 from ↵Rafael Mendonça França2013-07-011-0/+13
|\ | | | | | | | | | | | | | | | | neerajdotname/delete_all_should_not_call_callbacks Do not invoke callbacks when delete_all is called Conflicts: activerecord/CHANGELOG.md
| * Do not invoke callbacks when delete_all is calledNeeraj Singh2013-06-301-0/+13
| | | | | | | | | | | | | | | | | | | | | | Method `delete_all` should not be invoking callbacks and this feature was deprecated in Rails 4.0. This is being removed. `delete_all` will continue to honor the `:dependent` option. However if `:dependent` value is `:destroy` then the default deletion strategy for that collection will be applied. User can also force a deletion strategy by passing parameter to `delete_all`. For example you can do `@post.comments.delete_all(:nullify)`
* | calling default_scope without a proc will raise ArgumentErrorNeeraj Singh2013-07-021-0/+4
| | | | | | | | Calling default_scope without a proc will now raise `ArgumentError`.
* | Removed deprecated method type_cast_code from ColumnNeeraj Singh2013-07-021-0/+4
| |
* | Removed deprecated options for assocationsNeeraj Singh2013-07-021-0/+8
| | | | | | | | | | Deprecated options `delete_sql`, `insert_sql`, `finder_sql` and `counter_sql` have been deleted.
* | remove deprecated `ActiveRecord::Base#connection` method.Yves Senn2013-07-011-0/+5
| |
* | remove auto-explain-config deprecation warningYves Senn2013-07-011-0/+4
| |
* | Remove deprecated `:distinct` option from `Relation#count`.Yves Senn2013-07-011-0/+4
| |
* | Removed deprecated methods partial_updates and familyNeeraj Singh2013-07-021-0/+5
| | | | | | | | | | Removed deprecated methods `partial_updates`, `partial_updates?` and `partial_updates=`
* | Merge pull request #11213 from neerajdotname/scoped-deprecatedRafael Mendonça França2013-07-011-0/+4
|\ \ | | | | | | | | | | | | | | | | | | Removed deprecated scoped method Conflicts: activerecord/CHANGELOG.md
| * | Removed deprecated method scopedNeeraj Singh2013-07-011-0/+4
| |/
* / Removed deprecated method default_scopes?Neeraj Singh2013-07-011-0/+4
|/
* remove deprecated implicit join references.Yves Senn2013-06-291-0/+12
|
* Apply default scope when joining associations.Jon Leighton2013-06-281-0/+19
| | | | | | | | | | | | | | | | | | | For example: class Post < ActiveRecord::Base default_scope -> { where published: true } end class Comment belongs_to :post end When calling `Comment.join(:post)`, we expect to receive only comments on published posts, since that is the default scope for posts. Before this change, the default scope from `Post` was not applied, so we'd get comments on unpublished posts.
* Remove depreacted findersŁukasz Strzałkowski2013-06-281-0/+4
| | | | They were deprecated in 4.0, planned to remove in 4.1
* Fix @tenderlove's name in changelog :sparkles:Carlos Antonio da Silva2013-06-261-2/+2
| | | | [ci skip]
* Add changelog entry for database tasks removal #10853 [ci skip]Carlos Antonio da Silva2013-06-251-0/+4
|
* Merge pull request #10992 from Empact/find-each-enumeratorCarlos Antonio da Silva2013-06-251-0/+5
|\ | | | | | | When .find_each is called without a block, return an Enumerator.
| * When .find_each is called without a block, return an Enumerator.Ben Woosley2013-06-191-0/+5
| | | | | | | | This lets us do things like call: .find_each.with_index
* | Merge pull request #10993 from Empact/result-each-enumeratorCarlos Antonio da Silva2013-06-251-0/+5
|\ \ | | | | | | | | | Change Result#each to return an Enumerator when called without a block.
| * | Change Result#each to return an Enumerator when called without a block.Ben Woosley2013-06-181-0/+5
| | | | | | | | | | | | As with #10992, this lets us call #with_index, etc on the results.
* | | remove trailing whitespace from Active Record CHANGELOGYves Senn2013-06-251-1/+1
| | |
* | | flatten merged join_values before building the joinsNeeraj Singh2013-06-221-0/+10
| | | | | | | | | | | | | | | | | | | | | | | | fixes #10669 While joining_values special treatment is given to string values. By flattening the array it ensures that string values are detected as strings and not arrays.
* | | do not load all child records for inverse caseNeeraj Singh2013-06-211-0/+16
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | currently `post.comments.find(Comment.first.id)` would load all comments for the given post to set the inverse association. This has a huge performance penalty. Because if post has 100k records and all these 100k records would be loaded in memory even though the comment id was supplied. Fix is to use in-memory records only if loaded? is true. Otherwise load the records using full sql. Fixes #10509
* | | `inspect` for AR model classes does not initiate a new connection.Yves Senn2013-06-201-0/+11
| | |
* | | add forgotten CHANGELOG entry for #10884.Yves Senn2013-06-191-0/+5
| | |
* | | Revert "Merge pull request #10566 from neerajdotname/10509d"Jon Leighton2013-06-191-16/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This reverts commit 2b817a5e89ac0e7aeb894a40ae7151a0cf3cef16, reversing changes made to 353a398bee68c5ea99d76ac7601de0a5fef6f4a5. Conflicts: activerecord/CHANGELOG.md Reason: the build broke
* | | log the sql that is actually sent to the databaseNeeraj Singh2013-06-191-0/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | If I have a query that produces sql `WHERE "users"."name" = 'a b'` then in the log all the whitespace is being squeezed. So the sql that is printed in the log is `WHERE "users"."name" = 'a b'`. This can be confusing. This commit fixes it by ensuring that whitespace is not squeezed. fixes #10982
* | | do not load all child records for inverse caseNeeraj Singh2013-06-191-0/+16
|/ / | | | | | | | | | | | | | | | | | | | | | | | | | | currently `post.comments.find(Comment.first.id)` would load all comments for the given post to set the inverse association. This has a huge performance penalty. Because if post has 100k records and all these 100k records would be loaded in memory even though the comment id was supplied. Fix is to use in-memory records only if loaded? is true. Otherwise load the records using full sql. Fixes #10509
* | Fix formatting of my name in the changelog, and given Aaron credit for ↵Ben Woosley2013-06-181-1/+3
| | | | | | | | b483a0d2a75b
* | It takes 4 spaces or some backticks to have this code displayed as code in ↵Ben Woosley2013-06-181-23/+23
|/ | | | the changelog.
* fixture setup does not rely on `AR::Base.configurations`.Yves Senn2013-06-151-0/+5
| | | | | | | | As you can also configure your database connection using `ENV["DATABASE_URL"]`, the fixture setup can't reply on the `.configurations` Hash. As the fixtures are only loaded when ActiveRecord is actually used (`rails/test_help.rb`) it should be safe to drop the check for an existing configuration.
* regression test + mysql2 adapter raises correct error if conn is closed.Yves Senn2013-06-151-0/+5
|
* cleanup, remove trailing whitespace from AR changelogYves Senn2013-06-151-4/+4
|
* Merge branch 'master' of github.com:lifo/docrailsVijay Dev2013-06-141-2/+2
|\ | | | | | | | | Conflicts: guides/source/upgrading_ruby_on_rails.md
| * Consistent use of one space only after punctuationSunny Ripert2013-05-281-2/+2
| |
* | Ambiguous reflections are on :through relationships are no longer supported.Aaron Patterson2013-06-131-0/+31
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | For example, you need to change this: class Author < ActiveRecord::Base has_many :posts has_many :taggings, :through => :posts end class Post < ActiveRecord::Base has_one :tagging has_many :taggings end class Tagging < ActiveRecord::Base end To this: class Author < ActiveRecord::Base has_many :posts has_many :taggings, :through => :posts, :source => :tagging end class Post < ActiveRecord::Base has_one :tagging has_many :taggings end class Tagging < ActiveRecord::Base end
* | Fix typos in AR changelog [ci skip]Prathamesh Sonpatki2013-06-121-2/+2
| |
* | Remove fall back and column restrictions for `count`.Yves Senn2013-06-091-0/+16
| |
* | Getting rid of the +automatic_inverse_of: false+ option in associations in favorwangjohn2013-06-081-0/+21
| | | | | | | | | | of using +inverse_of: false+ option. Changing the documentation and adding a CHANGELOG entry for the automatic inverse detection feature.
* | Fixes #10432 add_column not creating array columns in PostgreSQLAdam Anderson2013-06-041-0/+4
| | | | | | | | | | | | When then PostgreSQL visitor was [added](https://github.com/rails/rails/commit/6b7fdf3bf3675a14eae74acc5241089308153a34) `add_column` was no longer receiving the column options directly. This caused the options to be lost along the way.
* | `implicit_readonly` is being removed in favor of calling `readonly` explicitlyYves Senn2013-05-271-0/+12
| |
* | Fix the `:primary_key` option for `has_many` associations.Yves Senn2013-05-231-0/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When removing records from a `has_many` association it used the `primary_key` defined on the association. Our test suite didn't fail because on all occurences of `:primary_key`, the specified column was available in both tables. This prevented the code from raising an exception but it still behaved badly. I added a test-case to prevent regressions that failed with: ``` 1) Error: HasManyAssociationsTest#test_has_many_assignment_with_custom_primary_key: ActiveRecord::StatementInvalid: SQLite3::SQLException: no such column: essays.first_name: UPDATE "essays" SET "writer_id" = NULL WHERE "essays"."writer_id" = ? AND "essays"."first_name" IS NULL ```
* | Add CHANGELOG entry for 99860582b2b1c0fc42bf84c52aac57b243d42678Rafael Mendonça França2013-05-221-0/+6
|/
* Fxied some typosPrathamesh Sonpatki2013-05-181-1/+1
|
* Also support extensions in PostgreSQL 9.1, because this has been supported ↵kennyj2013-05-151-0/+4
| | | | since 9.1.