# `AgentSessionManager.Adapters.EctoSessionStore.Migration`
[🔗](https://github.com/nshkrdotcom/agent_session_manager/blob/v0.8.0/lib/agent_session_manager/adapters/ecto_session_store/migration.ex#L2)

Provides migration functions for the EctoSessionStore adapter.

This migration is canonical for the unreleased 0.8.0 persistence schema and
creates all required tables, columns, and indexes in one step.

## Usage

Create a migration in your application:

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

      def up do
        AgentSessionManager.Adapters.EctoSessionStore.Migration.up()
      end

      def down do
        AgentSessionManager.Adapters.EctoSessionStore.Migration.down()
      end
    end

# `down`

Drops all tables created by `up/0`.

# `up`

Creates all tables and indexes required by the EctoSessionStore.

---

*Consult [api-reference.md](api-reference.md) for complete listing*
