def write_set_attribute(attribute_name, value)
      column_type = ((column_definition = self.class.columns_hash[attribute_name.to_s]) and column_definition.type)
      value = value.to_s(10) if column_type == :string
      write_attribute(attribute_name, value)
    end
def write_set_attribute(attribute_name, value)
      column_type = ((column_definition = self.class.columns_hash[attribute_name.to_s]) and column_definition.type)
      value = value.to_s(10) if column_type == :string
      write_attribute(attribute_name, value)
    end
Just a small wrapper about the `ActiveRecord::Base#write_attribute` method, which also checks the type
  of the column and converts the value to an `String` if `String` is the column type. This is needed because
  implicit conversion produces something like `3.4532454354325645e+17` instead of an `integer`