We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e415d9e commit 3f837d1Copy full SHA for 3f837d1
lib/migration_generator/migration_generator.ex
@@ -2960,10 +2960,14 @@ defmodule AshPostgres.MigrationGenerator do
2960
end
2961
2962
defp renaming?(table, removing, opts) do
2963
- if opts.no_shell? do
2964
- raise "Unimplemented: cannot determine: Are you renaming #{table}.#{removing.source}? without shell input"
+ if opts.dev do
+ if opts.no_shell? do
2965
+ raise "Unimplemented: cannot determine: Are you renaming #{table}.#{removing.source}? without shell input"
2966
+ else
2967
+ yes?(opts, "Are you renaming #{table}.#{removing.source}?")
2968
+ end
2969
else
- yes?(opts, "Are you renaming #{table}.#{removing.source}?")
2970
+ false
2971
2972
2973
0 commit comments