Skip to content

Commit 39f507b

Browse files
committed
chore: better dev migration error
1 parent 627d7c5 commit 39f507b

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

lib/migration_generator/migration_generator.ex

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -343,9 +343,12 @@ defmodule AshSqlite.MigrationGenerator do
343343
if !opts.dev and dev_migrations != [] do
344344
if opts.check do
345345
Mix.shell().error("""
346-
Generated migrations are from dev mode.
346+
Codegen check failed.
347347
348-
Generate migrations without `--dev` flag.
348+
You have migrations remaining that were generated with the --dev flag.
349+
350+
Run `mix ash.codegen <name>` to remove the dev migraitons and replace them
351+
with production ready migrations.
349352
""")
350353

351354
exit({:shutdown, 1})

0 commit comments

Comments
 (0)