aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord
diff options
context:
space:
mode:
authorYves Senn <yves.senn@gmail.com>2013-12-22 18:44:42 +0100
committerYves Senn <yves.senn@gmail.com>2013-12-22 18:44:42 +0100
commit1a6089f30565cc3fd19c02c2331fdd255ff23502 (patch)
tree5781a975cea99d2fd2a8e9405db950796279dec6 /activerecord
parentc0a6ffb799c2516f8ff76a9b4bf58b2ad1b9235b (diff)
downloadrails-1a6089f30565cc3fd19c02c2331fdd255ff23502.tar.gz
rails-1a6089f30565cc3fd19c02c2331fdd255ff23502.tar.bz2
rails-1a6089f30565cc3fd19c02c2331fdd255ff23502.zip
CHANGELOG entry for #13451. [ci skip]
Diffstat (limited to 'activerecord')
-rw-r--r--activerecord/CHANGELOG.md13
1 files changed, 13 insertions, 0 deletions
diff --git a/activerecord/CHANGELOG.md b/activerecord/CHANGELOG.md
index 614059a94f..5ceb012aef 100644
--- a/activerecord/CHANGELOG.md
+++ b/activerecord/CHANGELOG.md
@@ -1,3 +1,16 @@
+* Fix a bug when assigning an array containing string numbers to a
+ PostgreSQL integer array column.
+
+ Fixes #13444.
+
+ Example:
+
+ # Given Book#ratings is of type :integer, array: true
+ Book.new(ratings: [1, 2]) # worked before
+ Book.new(ratings: ['1', '2']) # now works as well
+
+ *Damien Mathieu*
+
* Improve the default select when `from` is used.
Previously, if you did something like Topic.from(:temp_topics), it