class Avram::Migrator::ChangeNullStatement

Overview

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;"

Defined in:

avram/migrator/change_null_statement.cr

Constructors

Instance Method Summary

Instance methods inherited from class Object

blank_for_validates_required? : Bool blank_for_validates_required?

Constructor Detail

def self.new(table : TableName, column : Symbol, required : Bool) #

[View source]

Instance Method Detail

def build #

[View source]