Rails Migration Data Types – MySql – Postgresql – SQLite

Railsmysqlpostgresqlsqlite
:binaryblobbyteablob
:booleantinyint(1)booleanboolean
:datedatedatedate
:datetimedatetimetimestampdatetime
:decimaldecimaldecimaldecimal
:floatfloatfloatfloat
:integerint(11)integerinteger
:stringvarchar(255)*varchar(255)
:texttexttexttext
:timetimetimedatetime
:timestampdatetimetimestampdatetime