Skip to content
  • Yves Senn's avatar
    1d08b980
    uniqueness validation raises error for persisted record without pk. · 1d08b980
    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
    1d08b980
    uniqueness validation raises error for persisted record without pk.
    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
Loading