class Avram::Migrator::DropSequenceStatement

Overview

Builds an SQL statement for dropping a sequence using the given name.

Usage

DropSequenceStatement.new(:accounts_number, if_not_exists: true, owned_by: "accounts.number").build
# => "CREATE SEQUENCE accounts_number_seq;"

Defined in:

avram/migrator/drop_sequence_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(name : String | Symbol) #

[View source]

Instance Method Detail

def build #

[View source]