aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib/active_record/aggregations.rb
diff options
context:
space:
mode:
authorYves Senn <yves.senn@gmail.com>2015-08-20 12:07:02 +0200
committerYves Senn <yves.senn@gmail.com>2015-08-20 12:07:02 +0200
commit50e4afff209ee6dcb50938b59bff32255a3f543e (patch)
treef1635d410e49db8db35ce86fbd5af9e83b3a23a1 /activerecord/lib/active_record/aggregations.rb
parent013dd756e1ca730d95f13f334e02470ce528354b (diff)
downloadrails-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 'activerecord/lib/active_record/aggregations.rb')
0 files changed, 0 insertions, 0 deletions