Trait schemer_postgres::PostgresMigration
[−]
[src]
pub trait PostgresMigration: Migration { fn up(&self, _transaction: &Transaction) -> Result<(), PostgresError> { ... } fn down(&self, _transaction: &Transaction) -> Result<(), PostgresError> { ... } }
PostgreSQL-specific trait for schema migrations.
Provided Methods
fn up(&self, _transaction: &Transaction) -> Result<(), PostgresError>
Apply a migration to the database using a transaction.
fn down(&self, _transaction: &Transaction) -> Result<(), PostgresError>
Revert a migration to the database using a transaction.