diff options
author | Yves Senn <yves.senn@gmail.com> | 2012-10-28 18:05:30 +0100 |
---|---|---|
committer | Yves Senn <yves.senn@gmail.com> | 2012-10-28 20:40:37 +0100 |
commit | e4790a2c5b99704f430c837d8f22fec418f2c8af (patch) | |
tree | d774ad70503daabeaba3233a0da1f7fcf94a7e17 /activerecord/CHANGELOG.md | |
parent | b104157314e95115b74e7ddd968f9c7734309a6e (diff) | |
download | rails-e4790a2c5b99704f430c837d8f22fec418f2c8af.tar.gz rails-e4790a2c5b99704f430c837d8f22fec418f2c8af.tar.bz2 rails-e4790a2c5b99704f430c837d8f22fec418f2c8af.zip |
raise `ArgumentError` when redefining the primary key column. Closes #6378
Diffstat (limited to 'activerecord/CHANGELOG.md')
-rw-r--r-- | activerecord/CHANGELOG.md | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/activerecord/CHANGELOG.md b/activerecord/CHANGELOG.md index f630be6f70..4916777ce7 100644 --- a/activerecord/CHANGELOG.md +++ b/activerecord/CHANGELOG.md @@ -1,5 +1,10 @@ ## Rails 4.0.0 (unreleased) ## +* The `create_table` method raises an `ArgumentError` when the primary key column is redefined. + Fix #6378 + + *Yves Senn* + * `ActiveRecord::AttributeMethods#[]` raises `ActiveModel::MissingAttributeError` error if the given attribute is missing. Fixes #5433. |