stefankroes / ancestry

Organise ActiveRecord model into a tree structure
MIT License
3.71k stars 458 forks source link

Fix update_strategy=sql for touch sql and update hooks #657

Closed kbrock closed 1 year ago

kbrock commented 1 year ago

In order to leverage rail's date casting for the updated_at column, now pass hashes into update_all (was building a sql string). This is only compatible for rails version 6.0 and later.

Dropped support for rails 5.2. In the short term, still running tests for rails 5.2 and the default update_strategy = ruby.