aboutsummaryrefslogtreecommitdiffstats
path: root/activejob/MIT-LICENSE
diff options
context:
space:
mode:
authorRyuta Kamizono <kamipo@gmail.com>2018-03-04 15:32:46 +0900
committerRyuta Kamizono <kamipo@gmail.com>2018-03-05 09:51:12 +0900
commite117d9266e577675afe1462e37601c029e21091b (patch)
tree4fdd56909796107887a97455c9559b63af4d935e /activejob/MIT-LICENSE
parent7e658588fa15e799614268f1f733946bf2ef26cd (diff)
downloadrails-e117d9266e577675afe1462e37601c029e21091b.tar.gz
rails-e117d9266e577675afe1462e37601c029e21091b.tar.bz2
rails-e117d9266e577675afe1462e37601c029e21091b.zip
`id_in_database` should be respected as primary key value for persisted records
Currently primary key value can not be updated if a record has a locking column because of `_update_record` in `Locking::Optimistic` doesn't respect `id_in_database` as primary key value unlike in `Persistence`. And also, if a record has dirty primary key value, it may destroy any other record by the lock version of dirty record itself. When updating/destroying persisted records, it should identify themselves by `id_in_database`, not by dirty primary key value.
Diffstat (limited to 'activejob/MIT-LICENSE')
0 files changed, 0 insertions, 0 deletions