# File lib/active_record/base.rb, line 2303 def decrement(attribute, by = 1) self[attribute] ||= 0 self[attribute] -= by self end