Rails 5 更新数据不更新updated_at字段
2019-07-15 本文已影响0人
ifree321
Rails 5 updating a record without updating timestamps
https://blog.bigbinary.com/2016/05/09/rails-5-allows-updating-without-updating-timestamps.html
info.jd = info.jd.gsub('责', '职责')
info.save(touch: false)