ActiveRecord Migrations

suggest change

Versions

[{“Name”:“5.0”,“GroupName”:null}]

Parameters

Column type Description
:primary_key Primary key.
:string Shorter string. Allows a limit option for the maximum number of characters.
:text Longer text. Allows a limit option for the maximum number of bytes.
:integer Integer. Allows a limit option for the number of bytes used to store the value.
:bigint Larger integer.
:float Float.
:decimal Decimal number with variable precision. Allows precision and scale options.
:numeric Alias of :decimal. Allows precision and scale options.
:datetime Date and time.
:time Time of day.
:date Date.
:binary Binary data. Allows a limit option for the maximum number of bytes.
:boolean Boolean.

Remarks

Feedback about page:

Feedback:
Optional: your email if you want me to get back to you:



Table Of Contents