summaryrefslogtreecommitdiff
path: root/src/bin/migrate.rs
blob: f19a766b21d9644a2678b29d271843fb36d53095 (plain)
1
2
3
4
5
6
7
8
9
use diesel::pg::PgConnection;
use diesel::prelude::*;

use space::math::get_db_url;

fn main() {
    let connection = PgConnection::establish(&get_db_url()).expect("Cannot connect");
    migrations_internals::run_pending_migrations(&connection).expect("Cannot run migrations");
}