ActiveRecord Result #affected_rows attribute affected_rows Ruby on Rails 8.1.2 Since v8.1.2 No documentation comment.