/// Run migrations, panic if migration fails.
/// The migrations folder must present on the current or parent directory.
Run migrations, panic if migration fails.
The migrations folder must present on the current or parent directory.
Run migrations panic if migration fails . The migrations folder must present on the current or parent directory .
pub fn migrate(&self) {
        debug!("Migrating");
        let migration_result = diesel_migrations::run_pending_migrations(&self.connection);
        match migration_result {
            Ok(_) => {}
            Err(error) => {
                error!("Error when running migrations: {}", error);
            }
        }
        use crate::search;
        search::rebuild(self);
    }
pub fn migrate ( & self ) { debug ! ( " " ) ; let migration_result = diesel_migrations :: run_pending_migrations ( & self . connection ) ; match migration_result { Ok ( _ ) => { } Err ( error ) => { error ! ( " " error ) ; } } use crate :: search ; search :: rebuild ( self ) ; }
Run migrations, panic if migration fails.
Run migrations panic if migration fails .
&self