Rails ですべてのレコードのフィールドを更新する方法 User.all.each { |n| n.update_attribute(:email, true) } 参考 Stack Overflow 1 PocketIn Rails Console. how to update a field for all records?https://stackoverflow.com/questions/7693127/in-rails-console-how-to-update-a-field-for-all-recordshow can I update a table Notification.email to all true in console?In console, I'd like to loop through all the records in the table and set email = true.Ideas?