-
Yves Senn authored
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). Conflicts: activerecord/CHANGELOG.md activerecord/lib/active_record/validations/uniqueness.rb activerecord/test/cases/validations/uniqueness_validation_test.rb
Yves Senn authoredCloses #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). Conflicts: activerecord/CHANGELOG.md activerecord/lib/active_record/validations/uniqueness.rb activerecord/test/cases/validations/uniqueness_validation_test.rb
Loading