Continue Proofmode integration
This commit is contained in:
parent
1eb4a508c1
commit
4f7a12547e
10 changed files with 2713 additions and 199 deletions
|
|
@ -37,7 +37,7 @@ export const createMigration = async ({ displayName }: Record<string, string>) =
|
|||
const contents = migrationTemplate.replace("MIGRATION_NAME", migrationName);
|
||||
const time = new Date().toISOString().replace(/[-:.]/g, "").slice(0, 14);
|
||||
const migrationFileName = `${time}_${migrationBaseName}.rb`;
|
||||
const addonDir = path.join("src", "db", "addon", displayName);
|
||||
const addonDir = path.join("src", "db", "addon", displayName.toLowerCase());
|
||||
await fs.mkdir(addonDir, { recursive: true });
|
||||
await fs.writeFile(path.join(addonDir, migrationFileName), contents);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue