class

Avram::Migrator::ChangeNullStatement

Inherits Reference < Object

Builds an SQL statement for changing a columns NOT NULL status.

Usage

ChangeNullStatement.new(:users, :email, make: :optional).build
# => "ALTER TABLE users ALTER COLUMN email DROP NOT NULL;"

Constructors

new(table : TableName, column : Symbol, required : Bool)
Source

Instance methods

build
Source