method

change_null

Importance_1
v7.1.3.2 - Show latest stable - 0 notes - Class: Table
change_null(column_name, null, default = nil) public

Sets or removes a NOT NULL constraint on a column.

t.change_null(:qualification, true)
t.change_null(:qualification, false, 0)

See {connection.change_column_null}[rdoc-ref:SchemaStatements#change_column_null]

Show source
Register or log in to add new notes.