Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: Startup script does not always perform migrations (#2246)
## Context This PR is a fix for #1945 (comment) ## Description Lago startup script is relying on the `rails db:migrate:primary` to perform the migration at startup. Since in some situation, only one database is configured in the `database.yml` file, the command is failing with the following error: ``` Unrecognized command "db:migrate:primary" (Rails::Command::UnrecognizedCommandError) Did you mean? db:migrate:up ``` This PR fixes this by using `rails db:migrate` instead when only one database is present.
- Loading branch information