Trait diesel::migration::MigrationSource

source ·
pub trait MigrationSource<DB: Backend> {
    // Required method
    fn migrations(&self) -> Result<Vec<Box<dyn Migration<DB>>>>;
}
Expand description

A migration source is an entity that can be used to receive a number of migrations from.

Required Methods§

source

fn migrations(&self) -> Result<Vec<Box<dyn Migration<DB>>>>

Get a list of migrations associated with this migration soucre.

Implementors§