module Ktistec::Database::Migration

Overview

Common interface for all migrations.

Defined in:

framework/database.cr

Instance Method Summary

Instance Method Detail

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

Adds a column to the table.


[View source]
def columns(table) #

Returns the table's columns.


[View source]
def down(filename = __FILE__, &proc : Operation) #

Reverts the migration.


[View source]
def indexes(table) #

Returns the table's indexes.


[View source]
def remove_column(table, column) #

Removes a column from the table.


[View source]
def up(filename = __FILE__, &proc : Operation) #

Applies the migration.


[View source]