In the migrations, wherever the db name is present, the name should be prefixed with a constant. Write a check to ensure that this is always the case.