I have a complex migration to transform some data and then to remove N columns.
Currently I use
MigrationA.exs
query
|> Repo.stream()
|> Stream.each(fn struct ->
# some logic here
end)
|> Stream.run()
MigrationB.exs
alter table(:foobar) do
remove :barfoo
end
The problem is once I run mix test
it applies all new migrations and my code in test folder tries to test already missing columns. The current solution is to stop manually before this migration. Run single test. Continue on migrations and remaining tests. But it is done manually which is annoying. Is there any approach to cover this case with the same single mix test
command comfort?