Jido.Ecto.Migrations (Jido Ecto v1.0.0)

Copy Markdown View Source

Migration helpers for jido_ecto.

Example

defmodule MyApp.Repo.Migrations.CreateJidoStorage do
  use Ecto.Migration

  def change do
    require Jido.Ecto.Migrations
    Jido.Ecto.Migrations.create_storage_tables(version: 1)
  end
end

Options

  • :version - required storage schema version
  • :prefix - database prefix or schema name passed through to Ecto. PostgreSQL schemas are created automatically when a prefix is provided.

Summary

Functions

Creates the storage tables used by Jido.Ecto.Storage.

Functions

create_storage_tables(opts \\ [])

(macro)
@spec create_storage_tables(keyword()) :: Macro.t()

Creates the storage tables used by Jido.Ecto.Storage.