aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/CHANGELOG.md
Commit message (Collapse)AuthorAgeFilesLines
* Add missing CHANGELOG entry removed by mistake at 7f3b475 [ci skip]Rafael Mendonça França2012-09-281-11/+20
|
* Support for partial inserts.Jon Leighton2012-09-281-0/+13
| | | | | | | | | | | When inserting new records, only the fields which have been changed from the defaults will actually be included in the INSERT statement. The other fields will be populated by the database. This is more efficient, and also means that it will be safe to remove database columns without getting subsequent errors in running app processes (so long as the code in those processes doesn't contain any references to the removed column).
* Add #update_columns entry to AR Changelog.Sebastian Martinez2012-09-281-0/+11
|
* Add CHANGELOG entry and update the guideJohn Foley2012-09-231-0/+4
|
* Revert "Fix find_in_batches with customized primary_key"Santiago Pastorino2012-09-211-15/+0
| | | | | | | This reverts commit 761bc751d31c22e2c2fdae2b4cdd435b68b6d783. This commit wasn't fixing any issue just using the same table for different models with different primary keys.
* Support for specifying transaction isolation levelJon Leighton2012-09-211-0/+35
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | If your database supports setting the isolation level for a transaction, you can set it like so: Post.transaction(isolation: :serializable) do # ... end Valid isolation levels are: * `:read_uncommitted` * `:read_committed` * `:repeatable_read` * `:serializable` You should consult the documentation for your database to understand the semantics of these different levels: * http://www.postgresql.org/docs/9.1/static/transaction-iso.html * https://dev.mysql.com/doc/refman/5.0/en/set-transaction.html An `ActiveRecord::TransactionIsolationError` will be raised if: * The adapter does not support setting the isolation level * You are joining an existing open transaction * You are creating a nested (savepoint) transaction The mysql, mysql2 and postgresql adapters support setting the transaction isolation level. However, support is disabled for mysql versions below 5, because they are affected by a bug (http://bugs.mysql.com/bug.php?id=39170) which means the isolation level gets persisted outside the transaction.
* remove unnecessary entry and make minor edits to AR/CHANGELOG [ci skip]Francesco Rodriguez2012-09-201-7/+2
|
* rename AR::Model::Tag to AR::Tag - fixes #7714Francesco Rodriguez2012-09-201-0/+5
|
* Update changelogs to add entries about strong_parameters integrationGuillermo Iguaran2012-09-191-0/+14
|
* Improve the CHANGELOG entry for #6971Rafael Mendonça França2012-09-191-1/+14
|
* fix querying with an empty hashDamien Mathieu2012-09-191-0/+2
| | | | Closes #6960
* ActiveRecord -> Active RecordXavier Noria2012-09-181-1/+1
|
* Use the CHANGELOG convention [ci skip]Rafael Mendonça França2012-09-171-3/+5
|
* Merge pull request #7661 from ernie/build-join-records-on-unsaved-hmtRafael Mendonça França2012-09-171-0/+5
|\ | | | | Fix collection= on hm:t join models when unsaved
| * Fix collection= on hm:t join models when unsavedErnie Miller2012-09-171-0/+5
| | | | | | | | | | | | If assigning to a has_many :through collection against an unsaved object using the collection=[<array_of_items>] syntax, the join models were not properly created, previously.
* | improve AR/CHANGELOG [ci skip]Francesco Rodriguez2012-09-161-44/+68
| |
* | Merge pull request #7547 from danmcclain/pg-arraysRafael Mendonça França2012-09-161-0/+31
|\ \ | |/ |/| Adds migration and type casting support for PostgreSQL Array datatype
| * Moves column dump specific code to a module included in AbstractAdapterDan McClain2012-09-141-0/+31
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Having column related schema dumper code in the AbstractAdapter. The code remains the same, but by placing it in the AbstractAdapter, we can then overwrite it with Adapter specific methods that will help with Adapter specific data types. The goal of moving this code here is to create a new migration key for PostgreSQL's array type. Since any datatype can be an array, the goal is to have ':array => true' as a migration option, turning the datatype into an array. I've implemented this in postgres_ext, the syntax is shown here: https://github.com/dockyard/postgres_ext#arrays Adds array migration support Adds array_test.rb outlining the test cases for array data type Adds pg_array_parser to Gemfile for testing Adds pg_array_parser to postgresql_adapter (unused in this commit) Adds schema dump support for arrays Adds postgres array type casting support Updates changelog, adds note for inet and cidr support, which I forgot to add before Removing debugger, Adds pg_array_parser to JRuby platform Removes pg_array_parser requirement, creates ArrayParser module used by PostgreSQLAdapter
* | 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
| |