method

type_cast

type_cast(value, column = nil)
public

Cast a value to a type that the database understands. For example, SQLite does not understand dates, so this method will convert a Date to a String.