Function migrate_db

Source
pub fn migrate_db(db: &Database) -> Result<()>
Expand description

/db/migrate performs any pending migrations

ยงPanics

  • cannot connect to the database
  • cannot find the migrations directory
  • cannot run the migrations

TODO: Propagate more of these errors instead of panicking