class

Marten::DB::Management::SchemaEditor::PostgreSQL

Inherits Marten::DB::Management::SchemaEditor::Core / Marten::DB::Management::SchemaEditor::Base / Reference / Object

Instance methods

add_column(table : TableState, column : Column::Base) : Nil

Adds a column to a specific table.

Source
column_type_for_built_in_column(column : Column::Base) : String

Returns the database type for a specific built-in column implementation.

Note that this method is only used when handling column types of Marten built-in types as custom column implementations must define a #db_type method.

Source
column_type_suffix_for_built_in_column(column : Column::Base) : String | Nil

Returns the database type suffix for a specific built-in column implementation.

Note that this method is only used when handling column types of Marten built-in types.

Source
create_table(table : TableState) : Nil

Creates a new table from a migration table state.

Source
ddl_rollbackable?

Returns a boolean indicating if the schema editor implementation supports rollbacking DDL statements.

Source
quoted_default_value_for_built_in_column(value : ::DB::Any) : String

Returns a prepared default value that can be inserted in a column definition.

Source