module

Ktistec::Database::Migration

Common interface for all migrations.

Instance methods

add_column(table, column, definition, index = nil)

Adds a column to the table.

Source
columns(table)

Returns the table's columns.

Source
down(filename = __FILE__, &proc : Operation)

Reverts the migration.

Source
indexes(table)

Returns the table's indexes.

Source
remove_column(table, column)

Removes a column from the table.

Source
up(filename = __FILE__, &proc : Operation)

Applies the migration.

Source