* Ran a MediaItem generator; Reformatted to my liking * [WIP] added basic index function * setup oban * Added basic Oban job for indexing * Added in workers for indexing; hooked them into record creation flow * Added a task model with a phx generator * Tied together tasks with jobs and channels
13 lines
348 B
Elixir
13 lines
348 B
Elixir
defmodule Pinchflat.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)
|
|
end
|
|
end
|