Trait schemamama_postgres::PostgresMigration
[−]
[src]
pub trait PostgresMigration: Migration { fn up(&self, transaction: &Transaction) -> Result<(), PostgresError> { ... } fn down(&self, transaction: &Transaction) -> Result<(), PostgresError> { ... } }
A migration to be used within a PostgreSQL connection.
Provided Methods
fn up(&self, transaction: &Transaction) -> Result<(), PostgresError>
Called when this migration is to be executed. This function has an empty body by default, so its implementation is optional.
fn down(&self, transaction: &Transaction) -> Result<(), PostgresError>
Called when this migration is to be reversed. This function has an empty body by default, so its implementation is optional.