diff options
author | Stan Hu <stanhu@gmail.com> | 2016-12-01 19:24:17 +0300 |
---|---|---|
committer | Alejandro RodrÃguez <alejorro70@gmail.com> | 2016-12-01 21:34:03 +0300 |
commit | c1b27a5f06e832aa1d913e2301d2f4ab02095c89 (patch) | |
tree | 8e9b45fe659b9d5e0b3fe50959581cbd824cc938 /changelogs/unreleased/sh-update-sidekiq-cron.yml | |
parent | 01d77f62e758b0627851f15140d9eec3ed5b28c5 (diff) |
Merge branch 'fix-optimistic-locking-for-destroy' into 'master'
Make deleting with optimistic locking respect NULL
Make deleting with optimistic locking respect NULL
For now deleting with optimistic locking is broken when
lock_version is still NULL, because Rails would try to
delete with `lock_version = 0` while in the database
the column is still `NULL`.
The monkey patches would force Rails just pass whatever
in the column, and stop Rails from casting `NULL` into `0`
when the value is read from database.
Closes #24766
See merge request !7867
Diffstat (limited to 'changelogs/unreleased/sh-update-sidekiq-cron.yml')
0 files changed, 0 insertions, 0 deletions