1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00
rails--rails/activerecord/lib/active_record/validations
Yves Senn 50e4afff20 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).
2015-08-20 12:07:02 +02:00
..
absence.rb AR absence validator respects marked_for_destruction?. Closes #20449. 2015-06-22 15:45:08 +02:00
associated.rb Add a note on custom validation contexts. 2014-08-05 13:13:40 -07:00
length.rb A few documentation fixes [ci skip] 2015-06-23 17:55:37 +02:00
presence.rb refactor, don't duplicate presence validator logic. 2015-06-22 15:45:09 +02:00
uniqueness.rb uniqueness validation raises error for persisted record without pk. 2015-08-20 12:07:02 +02:00