Run migations on development server start
This commit is contained in:
parent
3541dd8a6d
commit
0f7b47af39
2 changed files with 25 additions and 0 deletions
|
@ -103,6 +103,12 @@ pub struct Config {
|
|||
pub zed_environment: String,
|
||||
}
|
||||
|
||||
impl Config {
|
||||
pub fn is_development(&self) -> bool {
|
||||
self.zed_environment == "development"
|
||||
}
|
||||
}
|
||||
|
||||
#[derive(Default, Deserialize)]
|
||||
pub struct MigrateConfig {
|
||||
pub database_url: String,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue