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