aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/CHANGELOG.md
Commit message (Collapse)AuthorAgeFilesLines
...
* | Don't explain except normal CRUD sql.kennyj2012-09-171-0/+5
| |
* | Fix find_in_batches with customized primary_keyToshiyuki Kawanishi2012-09-161-0/+15
|/
* refactor store_accessorMatt Jones2012-09-131-1/+7
|
* Accept belongs_to assoc. keys in ActiveRecord queriesbeerlington2012-09-111-0/+12
| | | | | | | | | | | | | Allows you to specify the model association key in a belongs_to relationship instead of the foreign key. The following queries are now equivalent: Post.where(:author_id => Author.first) Post.where(:author => Author.first) PriceEstimate.where(:estimate_of_type => 'Treasure', :estimate_of_id => treasure) PriceEstimate.where(:estimate_of => treasure)
* Use native mysqldump command for 'rake db:structure:dump'.kennyj2012-09-121-0/+5
|
* Raise MissingAttributeError on query methodsErnie Miller2012-09-081-0/+6
| | | | | | | | | | | | | When calling a query method on an attribute that was not selected by an ActiveRecord query, an ActiveModel::MissingAttributeError is not raised. Instead, a nil value is returned, which will return false once cast to boolean. This is undesirable, as we should not give the impression that we know the attribute's boolean value when we haven't loaded the attribute's (possibly) non-boolean value from the database. This issue is present on versions going back as far as 2.3, at least.
* improve AR CHANGELOG [ci skip]Francesco Rodriguez2012-09-081-8/+9
|
* Improve latest AR and AP changelog entriesCarlos Antonio da Silva2012-09-081-1/+4
|
* Dump schema using new style hashKonstantin Shabanov2012-09-081-0/+2
|
* Add changelog entry for #7545: map interval with precision to stringCarlos Antonio da Silva2012-09-071-0/+2
| | | | | Merged in f41dba27a411fe3e2ddeb8d9ab6856dbb23acd02 [ci skip]
* Remove 3.2.x entries from Active Record changelog [ci skip]Carlos Antonio da Silva2012-09-071-100/+0
| | | | | | | | Since 810a50dacf9ddddc1d59c1cb350e8ce785c8bf85, the new policy is to keep old changelogs in their own branches, to avoid manual syncing across different branches. Please check that commit for more reasoning about the new policy.
* Add Changelog entry for #4976: fix eager load associations without pks [ci skip]Carlos Antonio da Silva2012-09-071-0/+2
|
* Update Active Record CHANGELOG for #7419Prem Sichanugrist2012-09-061-0/+6
|
* ActiveRecord support to PostgreSQL 9.2 JSON typeDickson S. Guedes2012-09-051-0/+5
| | | | | | | | | This implements the support to encode/decode JSON data to/from database and creating columns of type JSON using a native type [1] supported by PostgreSQL from version 9.2. [1] http://www.postgresql.org/docs/9.2/static/datatype-json.html
* Add CHANGELOG entry for #7532 [ci skip]Rafael Mendonça França2012-09-051-0/+10
|
* Fix pluck when columns/tables are reserved words.Ian Lesperance2012-09-051-0/+4
|
* Update changelog with time column type casting fixAdam Meehan2012-09-051-0/+4
|
* CHANGELOGs are now per branchXavier Noria2012-08-281-6836/+1
| | | | | | | | | | Changes in old branches needed to be manually synched in CHANGELOGs of newer ones. This has proven to be brittle, sometimes one just forgets this manual step. With this commit we switch to CHANGELOGs per branch. When a new major version is cut from master, the CHANGELOGs in master start being blank. A link to the CHANGELOG of the previous branch allows anyone interested to follow the history.
* Remove CHANGELOG entry for the update_attribute removal.Rafael Mendonça França2012-08-261-6/+0
| | | | We reverted the removal because the new deprecation policy
* changelog #7449Mikhail Dieterle2012-08-261-0/+4
|
* Extract ActiveRecord::SessionStore from RailsPrem Sichanugrist2012-08-241-0/+3
| | | | | This functionality will be available from gem `active_record-session_store` instead.
* reset_counters() was crashing when there were multiple belongs_to ↵Dave Desrochers2012-08-211-0/+6
| | | | | | associations with the same foreign key. This closes #5200.
* Use instance_accessor: false instead of instance_writer.kennyj2012-08-211-0/+4
|
* Add CHANGELOG entry for #6986Rafael Mendonça França2012-08-211-0/+5
|
* Use inversed parent for first and last child of has_many associationbrainopia2012-08-181-0/+4
|
* Merge pull request #7352 from aripollak/microsecond-timestampRafael Mendonça França2012-08-171-0/+6
|\ | | | | Fix occasional microsecond conversion inaccuracy
| * Fix occasional microsecond conversion inaccuracyAri Pollak2012-08-151-0/+6
| | | | | | | | | | | | | | | | | | ActiveRecord::ConnectionAdapters::Column#microseconds did an unnecessary conversion to from Rational to float when calculating the integer number of microseconds. Some terminating decimal numbers in base10 are repeating decimal numbers in base2 (the format of float), and occasionally this causes a rounding error. Patch & explanation originally from Logan Bowers.
* | Renaming active_record_deprecated_finders to activerecord-deprecated_findersJon Leighton2012-08-171-2/+2
|/ | | | For consistency with the other AR extension plugins we are creating.
* Remove duplicated changelog entry [ci skip]Carlos Antonio da Silva2012-08-151-6/+0
|
* Move changelog entry to the top [ci skip]Carlos Antonio da Silva2012-08-151-5/+4
|
* Merge pull request #7133 from roshats/fix_update_all_with_blank_argumentCarlos Antonio da Silva2012-08-151-0/+4
|\ | | | | | | Change Relation#update_all with blank argument to raise an ArgumentError instead of trying an update with empty fields.
| * raise ArgumentError if list of attributes to change is empty in update_allRoman Shatsov2012-08-141-0/+4
| |
* | Restore state on create when ActiveRecord::RecordInvalid is raisedDave Yeu2012-08-111-0/+5
| | | | | | | | This fixes issue #3217.
* | Sync CHANGELOGs [ci skip]Rafael Mendonça França2012-08-111-3/+83
| |
* | Added changelog entry for table name prefix fix [ci skip]Wojciech Wnętrzak2012-08-111-0/+3
| |
* | Remove the dependent_restrict_raises option.Jon Leighton2012-08-101-16/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | It's not really a good idea to have this as a global config option. We should allow people to specify the behaviour per association. There will now be two new values: * :dependent => :restrict_with_exception implements the current behaviour of :restrict. :restrict itself is deprecated in favour of :restrict_with_exception. * :dependent => :restrict_with_error implements the new behaviour - it adds an error to the owner if there are dependent records present See #4727 for the original discussion of this.
* | Merge pull request #7140 from seamusabshere/patch-1Rafael Mendonça França2012-08-051-0/+5
|\ \ | | | | | | | | | | | | Make sure :environment task is executed before db:schema:load or db:structure:load
| * | Update changelogRafael Mendonça França2012-08-051-0/+5
| |/
* | Remove ActiveRecord::Base.to_aJon Leighton2012-08-031-2/+1
| | | | | | | | | | On reflection, it seems like a bit of a weird method to have on ActiveRecord::Base, and it shouldn't be needed most of the time anyway.
* | reinstate changelog that seems to have been accidentally deleted o_OJon Leighton2012-08-031-0/+19
| |
* | Allow Relation#merge to take a proc.Jon Leighton2012-08-031-0/+20
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This was requested by DHH to allow creating of one's own custom association macros. For example: module Commentable def has_many_comments(extra) has_many :comments, -> { where(:foo).merge(extra) } end end class Post < ActiveRecord::Base extend Commentable has_many_comments -> { where(:bar) } end
* | Add CollectionProxy#scopeJon Leighton2012-08-011-0/+18
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This can be used to get a Relation from an association. Previously we had a #scoped method, but we're deprecating that for AR::Base, so it doesn't make sense to have it here. This was requested by DHH, to facilitate code like this: Project.scope.order('created_at DESC').page(current_page).tagged_with(@tag).limit(5).scoping do @topics = @project.topics.scope @todolists = @project.todolists.scope @attachments = @project.attachments.scope @documents = @project.documents.scope end
* | Add `Relation#load`Jon Leighton2012-08-011-0/+15
| | | | | | | | | | | | | | | | | | | | | | | | | | This method explicitly loads the records and then returns `self`. Rather than deciding between "do I want an array or a relation?", most people are actually asking themselves "do I want to eager load or lazy load?" Therefore, this method provides a way to explicitly eager-load without having to switch from a `Relation` to an array. Example: @posts = Post.where(published: true).load
* | Deprecate :finder_sql, :counter_sql, :insert_sql, :delete_sql.Jon Leighton2012-08-011-0/+11
| |
* | Revert "Remove :finder_sql, :counter_sql, :insert_sql, :delete_sql."Jon Leighton2012-08-011-46/+0
| | | | | | | | | | | | | | | | | | This reverts commit 3803fcce26b837c0117f7d278b83c366dc4ed370. Conflicts: activerecord/CHANGELOG.md It will be deprecated only in 4.0, and removed properly in 4.1.
* | Change AR's CHANGELOG, because it is related to ↵kennyj2012-08-021-1/+1
| | | | | | | | e35c67ae0f920011a2440210041e96659a8de985
* | AR::Relation#order: make new order prepend old oneBogdan Gusiev2012-07-311-0/+9
| | | | | | | | | | | | | | User.order("name asc").order("created_at desc") # SELECT * FROM users ORDER BY created_at desc, name asc This also affects order defined in `default_scope` or any kind of associations.
* | Remove the deprecation of update_column.Rafael Mendonça França2012-07-301-5/+1
| | | | | | | | | | | | update_column was suggested as replacement of update_attribute at the last release of 3-2-stable, so deprecating it now will confuse the users.
* | Revert "Removing composed_of from ActiveRecord."Rafael Mendonça França2012-07-271-23/+0
| | | | | | | | | | | | | | | | | | | | | | This reverts commit 14fc8b34521f8354a17e50cd11fa3f809e423592. Reason: we need to discuss a better path from this removal. Conflicts: activerecord/lib/active_record/reflection.rb activerecord/test/cases/base_test.rb activerecord/test/models/developer.rb
* | Merge pull request #6827 from zephyr-dev/masterJosé Valim2012-07-271-0/+7
|\ \ | | | | | | Validates_presence_of associated object marked for destruction