def set_bits_for(column_name, field, value)
      if self.class.range_for(column_name, field).sum{|i| 2 ** i} < value
        raise ArgumentError, "Value: #{value} too large for bitfield filum"
      end
      
      self[column_name] ||= 0
      reset_mask = self.class.reset_mask_for(column_name, field)
      inc = self.class.increment_mask_for(column_name, field)
      self[column_name] = (self[column_name] & reset_mask) | (value * inc)
    end
def set_bits_for(column_name, field, value)
      if self.class.range_for(column_name, field).sum{|i| 2 ** i} < value
        raise ArgumentError, "Value: #{value} too large for bitfield filum"
      end
      
      self[column_name] ||= 0
      reset_mask = self.class.reset_mask_for(column_name, field)
      inc = self.class.increment_mask_for(column_name, field)
      self[column_name] = (self[column_name] & reset_mask) | (value * inc)
    end
:nodoc: