Derive Macro Migration

Source
#[derive(Migration)]
{
    // Attributes available to this derive:
    #[tern]
}
Expand description

A Rust migration requires a struct called TernMigration which derives Migration. This is used in concert with MigrationSource to finish the implementation of Migration for it.

With the macro attribute no_transaction, the Migration implementation is constructed to not run the migration in a database transaction.

ยงUsage

use tern::Migration;

/// Then implement `tern::QueryBuilder` for this type.
#[derive(Migration)]
#[tern(no_transaction)]
pub struct TernMigration;