diff options
author | Henrik N <henrik@nyh.se> | 2012-10-28 17:48:04 +0100 |
---|---|---|
committer | Henrik N <henrik@nyh.se> | 2012-10-28 21:28:54 +0100 |
commit | 1849665f738cf7b3650e508b05380ebb36748f9e (patch) | |
tree | 6e741da75ee9246fc85ca6bc1c222c7169681690 /activerecord/CHANGELOG.md | |
parent | 5bbe245a51cec029101c844e159ba7f7a7afedab (diff) | |
download | rails-1849665f738cf7b3650e508b05380ebb36748f9e.tar.gz rails-1849665f738cf7b3650e508b05380ebb36748f9e.tar.bz2 rails-1849665f738cf7b3650e508b05380ebb36748f9e.zip |
Enable update_column(s) for the primary key attribute.
Didn't work before because it updated the model-in-memory first, so the DB query couldn't find the record.
Diffstat (limited to 'activerecord/CHANGELOG.md')
-rw-r--r-- | activerecord/CHANGELOG.md | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/activerecord/CHANGELOG.md b/activerecord/CHANGELOG.md index 4916777ce7..684a8736c9 100644 --- a/activerecord/CHANGELOG.md +++ b/activerecord/CHANGELOG.md @@ -1,5 +1,9 @@ ## Rails 4.0.0 (unreleased) ## +* Fix bug where `update_columns` and `update_column` would not let you update the primary key column. + + *Henrik Nyh* + * The `create_table` method raises an `ArgumentError` when the primary key column is redefined. Fix #6378 |