Skip to main content

Module migrations

Module migrations 

Source
Expand description

Embedded database migrations.

The migrations under migrations/ are baked into the binary at compile time, so cortex init (and any deployment) can self-migrate the database with no diesel_cli on the host.

Constants§

MIGRATIONS
The set of migrations compiled into the binary (from the migrations/ directory).

Functions§

has_pending_migrations
Returns whether the database has any pending (un-applied) migrations.
run_pending_migrations
Applies all pending migrations, returning the versions applied (empty when already current).