I need to create a custom migration file for Oban, something like this:
defmodule MyApp.Repo.Migrations.AddObanJobsTable do use Ecto.Migration def up do Oban.Migration.up(version: 11) end # We specify `version: 1` in `down`, ensuring that we'll roll all the way back down if # necessary, regardless of which version we've migrated `up` to. def down do Oban.Migration.down(version: 1) endend
defmodule MyApp.Repo.Migrations.AddObanJobsTable do use Ecto.Migration def up do Oban.Migration.up(version: 11) end # We specify `version: 1` in `down`, ensuring that we'll roll all the way back down if # necessary, regardless of which version we've migrated `up` to. def down do Oban.Migration.down(version: 1) endend
I was wondering if there is any problem if I create this custom migration with
mix ecto.gen.migration my_migration
mix ecto.gen.migration my_migration
or if this will somehow create problems/conflicts with the way Ash handles its migrations right now.
The Elixir backend framework for unparalleled productivity. Declarative tools that let you stop wasting time. Use with Phoenix LiveView or build APIs in minutes for your front-end of choice.