1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00
rails--rails/activerecord/test/schema
Ryuta Kamizono cad0b7d91d Fix touch option to behave consistently with Persistence#touch method
`touch` option was added to `increment!` (#27660) and `update_counters`
(#26995). But that option behaves inconsistently with
`Persistence#touch` method.

If `touch` option is passed attribute names, it won't update
update_at/on attributes unlike `Persistence#touch` method.

Due to changed from `Persistence#touch` to `increment!` with `touch`
option, #31405 has a regression that `counter_cache` with `touch` option
which is passed attribute names won't update update_at/on attributes.

I think that the inconsistency is not intended. To get back consistency,
ensure that `touch` option updates update_at/on attributes.
2018-06-18 19:08:41 +09:00
..
mysql2_specific_schema.rb Use frozen-string-literal in ActiveRecord 2017-07-19 22:27:07 +03:00
oracle_specific_schema.rb Use frozen-string-literal in ActiveRecord 2017-07-19 22:27:07 +03:00
postgresql_specific_schema.rb Use frozen-string-literal in ActiveRecord 2017-07-19 22:27:07 +03:00
schema.rb Fix touch option to behave consistently with Persistence#touch method 2018-06-18 19:08:41 +09:00