module Ktistec::Database

Overview

Utilities for maintaining the database.

Defined in:

framework/database.cr
utils/database.cr

Class Method Summary

Class Method Detail

def self.all_applied_versions #

Returns all applied versions.


[View source]
def self.all_migrations #

Returns all defined migrations in no particular order.


[View source]
def self.all_pending_versions #

Returns all pending versions.


[View source]
def self.all_versions #

Returns all versions in sorted order.


[View source]
def self.do_operation(operation, version) #

Performs an operation on a migration.


[View source]
def self.find_migration(version) #

Finds migration by version.


[View source]
def self.recreate_timeline_and_notifications(limit = 1000) #

Destroy and recreate timeline and notifications.


[View source]