diff options
author | Yves Senn <yves.senn@gmail.com> | 2015-08-20 12:07:02 +0200 |
---|---|---|
committer | Yves Senn <yves.senn@gmail.com> | 2015-08-20 12:07:02 +0200 |
commit | 50e4afff209ee6dcb50938b59bff32255a3f543e (patch) | |
tree | f1635d410e49db8db35ce86fbd5af9e83b3a23a1 /railties/lib/rails/gem_version.rb | |
parent | 013dd756e1ca730d95f13f334e02470ce528354b (diff) | |
download | rails-50e4afff209ee6dcb50938b59bff32255a3f543e.tar.gz rails-50e4afff209ee6dcb50938b59bff32255a3f543e.tar.bz2 rails-50e4afff209ee6dcb50938b59bff32255a3f543e.zip |
uniqueness validation raises error for persisted record without pk.
Closes #21304.
While we can validate uniqueness for record without primary key on
creation, there is no way to exclude the current record when
updating. (The update itself will need a primary key to work correctly).
Diffstat (limited to 'railties/lib/rails/gem_version.rb')
0 files changed, 0 insertions, 0 deletions