column(column_name, type, options = {}) public

Adds a new column to the named table. See TableDefinition#column for details of the options you can use.

Example
Creating a simple column
 t.column(:name, :string)
Show source
Register or log in to add new notes.