rails persisted? と new_record? の違い
persisted?
オブジェクトがDBに保存されていたら true を返し、保存されていない&&今までに削除されていないなら false を返す
new_record?
Returns true if this object hasn't been saved yet – that is, a record for the object doesn't exist in the database yet; otherwise, returns false.
まだ save されていないオブジェクトなら true を返す
保存されているなら false を返す
https://api.rubyonrails.org/classes/ActiveRecord/Persistence.html#method-i-new_record-3F