class Jennifer::Postgres::SchemaProcessor
Defined in:
jennifer/adapter/postgres/schema_processor.crInstance Method Summary
- #add_index(table, name, fields : Array, type : Symbol? = nil, order : Hash? = nil, length : Hash? = nil)
- #build_change_enum(name, options)
- #build_create_enum(name, values)
- #build_create_materialized_view(name, source)
- #build_drop_enum(name)
- #build_drop_materialized_view(name)
- #change_column(table, old_name, new_name, opts)
- #define_enum(name : String | Symbol, values : Array)
- #drop_enum(name)
- #drop_foreign_key(from_table, _to_table, name)
- #drop_index(table, name)
-
#enum_exists?(*args, **options)
:nodoc:
- #enum_exists?(*args, **options, &)
- #rename_table(old_name : String | Symbol, new_name : String | Symbol)
Instance methods inherited from class Jennifer::Adapter::SchemaProcessor
adapter : Adapter::Base
adapter,
add_column(table, name, opts : Hash)
add_column,
add_foreign_key(from_table, to_table, column, primary_key, name, on_update, on_delete)
add_foreign_key,
add_index(table, name, fields : Array, type : Symbol? = nil, order : Hash? = nil, length : Hash? = nil)
add_index,
change_column(table, old_name, new_name, opts : Hash)
change_column,
create_table(builder : Migration::TableBuilder::CreateTable)
create_table,
create_view(name, query, silent = true)
create_view,
drop_column(table, name)
drop_column,
drop_foreign_key(from_table, _to_table, name)
drop_foreign_key,
drop_index(table, name)
drop_index,
drop_table(builder : Migration::TableBuilder::DropTable)
drop_table,
drop_view(name, silent = true)
drop_view,
rename_table(old_name : String | Symbol, new_name : String | Symbol)
rename_table
Constructor methods inherited from class Jennifer::Adapter::SchemaProcessor
new(adapter)
new
Instance Method Detail
def add_index(table, name, fields : Array, type : Symbol? = nil, order : Hash? = nil, length : Hash? = nil)
#
def enum_exists?(*args, **options)
#
Description copied from class Jennifer::Adapter::SchemaProcessor
:nodoc: