class

Avram::Migrator::DropSequenceStatement

Inherits Reference < Object

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

Constructors

new(name : String | Symbol)
Source

Instance methods

build
Source