# File lib/active_record/persistence.rb, line 152 def increment(attribute, by = 1) self[attribute] ||= 0 self[attribute] += by self end